matrix-nio/matrix-nio

Room upgrades and m.room.tombstone events.

poljar opened this issue · 4 comments

Matrix supports room upgrades. Room upgrades are essentially killing off an existing room and suggesting users to move to the new room.

To support room upgrades nio will need to parse the m.room.tombstone state events and store relevant information from the event in the MatrixRoom object of the room. Mainly the successor room of the event, and upgraded rooms should remember their predecessors as well.

To achieve this a new event schema should be specified in nio/schemas.py and a new event in nio/events/room_events.py. After that the handle_event method of the MatrixRoom class needs to be enhanced to handle the new event.

Relevant spec entry: https://matrix.org/docs/spec/client_server/latest#id205

@poljar Can you close this if it's resolved? It looks like #281 fixed this.

This feature is mentioned as unsupported in the README.md.
Upon completion, this info should get updated.

I'm seeing that we support this now: I'll assign myself to update the README appropriately

README updated: 17e34e1