-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Synapse default room version (6 -> 9) #1327
Conversation
From the [Synapse 1.43.0 release highlights](https://matrix.org/blog/2021/09/21/synapse-1-43-0-released): > Asks clients to prefer [room version 9](matrix-org/matrix-spec-proposals#3375) when creating restricted rooms ([#10772](matrix-org/synapse#10772)), via the API defined in [MSC3244: room version capabilities](matrix-org/matrix-spec-proposals#3244).
If you read that sentence again you'll see that they have not changed the default room version. They have only implemented the room version capabilities API to allow clients that wish to specifically use the features provided by v9 to create v9 rooms. The default room version in the Synapse and the spec remains at 6. |
I see. Oddly, the stable spec only lists through version 6, whereas the unstable has it through version 7, with 6 still being recommended. That said, the space-wide access requires version 9 and upgrading room is not the best experience for room participants, so creating them as version 9 initially makes sense. Still, going with the advised stable room versions makes sense, so until that all changes, should I just close this PR? |
If you create a new room in a space with a modern version of Element, it will be version 9 today with no configuration changes. And you are welcome to set But yes for the moment this should be closed or left open in with the knowledge that it won't be merged for a while. It will probably be ~6 months until version 9 is the default room version. Version 7 likely become the default in the near future. I am planning on making a proposal to change the default in the spec to version 7 as soon as ruma/ruma#738 is merged. |
Another thought crossed my mind, shouldn't this be set to a default value of blank as in the sample config? A friend pointed out that while there is a hard-coded default there is a check for a user set value before falling back to it. |
Oh, and I meant to mention that I saw the updated list of room versions which included 7 but not 8 or 9 here. |
We set it to a value explicitly instead of setting it to
When it comes to Synapse, a A We can avoid setting {% if matrix_synapse_default_room_version is not none %}
default_room_version: {{ matrix_synapse_default_room_version|to_json }}
{% endif %} However, this is somewhat ugly. Synapse complaining about a default_room_version = config.get("default_room_version", DEFAULT_ROOM_VERSION)
if default_room_version is None:
default_room_version = DEFAULT_ROOM_VERSION ... but it until such a thing gets merged and propagates into a few Synapse versions, we need to retain our code of explicitly setting |
I haven't forgotten about this and have been keeping it open to see if movement can be made upstream in regards to the latter thought. That said, there has been more discussion about defaulting to room v9: matrix-org/matrix-spec-proposals#3589 |
Yeah it should finally happen in the next week or two. |
This can be merged now. The spec now says v9 is the default and the next version of Synapse will use v9 as the default. |
Thanks for pinging us! It may have been better to wait an extra week, until Synapse makes the switch, but.. I've merged it now. I've been using room version 9 as the default for months. I'm sure others have done the same, so it doesn't seem risky switching. |
From the Synapse 1.43.0 release highlights: