Support stable MSC1772 spaces identifiers. (#9915)

Support both the unstable and stable identifiers. A future release
will disable the unstable identifiers.
This commit is contained in:
Patrick Cloke 2021-05-05 11:56:51 -04:00 committed by GitHub
parent ef889c98a6
commit e2a443550e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View file

@ -110,6 +110,8 @@ class EventTypes:
Dummy = "org.matrix.dummy_event"
SpaceChild = "m.space.child"
SpaceParent = "m.space.parent"
MSC1772_SPACE_CHILD = "org.matrix.msc1772.space.child"
MSC1772_SPACE_PARENT = "org.matrix.msc1772.space.parent"
@ -174,6 +176,7 @@ class EventContentFields:
SELF_DESTRUCT_AFTER = "org.matrix.self_destruct_after"
# cf https://github.com/matrix-org/matrix-doc/pull/1772
ROOM_TYPE = "m.type"
MSC1772_ROOM_TYPE = "org.matrix.msc1772.type"