Handle room version changes
Categories
(Chat Core :: Matrix, enhancement)
Tracking
(thunderbird_esr78 wontfix)
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | wontfix |
People
(Reporter: freaktechnik, Assigned: freaktechnik)
References
Details
Attachments
(1 file)
We need to handle room version changes. Not sure what our UI would look like, if we would have any. Maybe we just blindly follow the change and re-use the same conversation in the front-end?
Comment 1•3 years ago
|
||
What is a room version?
Assignee | ||
Comment 2•3 years ago
|
||
Room versions are essentially the spec version a room follows. A room version change means that on the protocol level a new room is created (with a different room version), though the user-visible alias etc. will stay the same.
The way element handles this is to show you a button to go to the new room instead of the chat input if the room version was upgraded.
I just noticed that the spec had something to say on client behaviors for room version upgrades: https://spec.matrix.org/unstable/client-server-api/#client-behaviour-27
The different room versions are specified at https://spec.matrix.org/unstable/rooms/. The differences are usually in how events are handled and the rules for event interactions. This is mostly handled by the SDK for us.
Comment 3•3 years ago
•
|
||
(In reply to Martin Giger [:freaktechnik] from comment #0)
Maybe we just blindly follow the change and re-use the same conversation in the front-end?
I think this would be my preference. It does mean joining a room / accepting an invite for the user automatically, but I think that's OK?
Assignee | ||
Comment 4•3 years ago
|
||
(In reply to Patrick Cloke [:clokep] from comment #3)
(In reply to Martin Giger [:freaktechnik] from comment #0)
Maybe we just blindly follow the change and re-use the same conversation in the front-end?
I think this would be my preference. It does mean joining a room / accepting an invite for the user automatically, but I think that's OK?
Yeah, especially since the old room is just a read-only relic of the state before the version change (in theory). Based on the spec text I think even the spec agrees that would be ok.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 5•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/6153c5b280ce
Follow room version changes. r=clokep
Updated•3 years ago
|
Description
•