Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Leave room with unknown room version #15785

Open
MadLittleMods opened this issue Jun 15, 2023 · 2 comments
Open

Leave room with unknown room version #15785

MadLittleMods opened this issue Jun 15, 2023 · 2 comments
Labels
A-Leave Leaving a room O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Tolerable Minor significance, cosmetic issues, low or no impact to users. T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.

Comments

@MadLittleMods
Copy link
Contributor

Background

Synapse currently only supports leaving a room with a supported/known room version. This means you can get stuck in rooms with experimental room versions which are later dropped from Synapse.

If you try to leave a room with a room version that is no longer supported, the /leave request gives a 400 error with M_UNSUPPORTED_ROOM_VERSION

{
  "errcode": "M_UNSUPPORTED_ROOM_VERSION",
  "error": "Room !abc uses a room version org.matrix.mscxxx.test which is no longer supported"
}

The technical reason behind not being able to leave is that Synapse doesn't know how to resolve state in those rooms. Perhaps the spec needs some fallback mechanism for users wanting to escape or we can just make some assumptions and do our best effort at sending a leave.

What would you like to do?

Leave room with unknown/unsupported room version


Related issues:

@clokep
Copy link
Member

clokep commented Jun 15, 2023

Could we add a background update or something to purge those rooms before we remove the room version?

In the past we've kind of just said "oh well that's on you for doing experimental things" and purged the rooms from matrix.org.

@MadLittleMods
Copy link
Contributor Author

MadLittleMods commented Jun 15, 2023

Could we add a background update or something to purge those rooms before we remove the room version?

It's kinda annoying to do it this way (for us as a maintenance task and for users). As @ara4n mentioned in the other issue mentioned, it would be nice if people could still access the events in the room (even if that is some degraded form like only being able to see current state events) and leave like normal.

@MatMaul MatMaul added S-Tolerable Minor significance, cosmetic issues, low or no impact to users. O-Uncommon Most users are unlikely to come across this or unexpected workflow T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. labels Jun 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Leave Leaving a room O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Tolerable Minor significance, cosmetic issues, low or no impact to users. T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.
Projects
None yet
Development

No branches or pull requests

3 participants