summary refs log tree commit diff
path: root/synapse/api/constants.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2021-03-18 18:24:16 +0000
committerGitHub <noreply@github.com>2021-03-18 18:24:16 +0000
commit004234f03abad58b2de28abff406391a6d182e48 (patch)
tree478881df270c2b6e032c71429beaf5047b96e89d /synapse/api/constants.py
parentConsistently check whether a password may be set for a user. (#9636) (diff)
downloadsynapse-004234f03abad58b2de28abff406391a6d182e48.tar.xz
Initial spaces summary API (#9643)
This is very bare-bones for now: federation will come soon, while pagination is descoped for now but will come later.
Diffstat (limited to 'synapse/api/constants.py')
-rw-r--r--synapse/api/constants.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py
index 691f8f9adf..ed050c8104 100644
--- a/synapse/api/constants.py
+++ b/synapse/api/constants.py
@@ -100,6 +100,9 @@ class EventTypes:
 
     Dummy = "org.matrix.dummy_event"
 
+    MSC1772_SPACE_CHILD = "org.matrix.msc1772.space.child"
+    MSC1772_SPACE_PARENT = "org.matrix.msc1772.space.parent"
+
 
 class EduTypes:
     Presence = "m.presence"
@@ -160,6 +163,9 @@ class EventContentFields:
     # cf https://github.com/matrix-org/matrix-doc/pull/2228
     SELF_DESTRUCT_AFTER = "org.matrix.self_destruct_after"
 
+    # cf https://github.com/matrix-org/matrix-doc/pull/1772
+    MSC1772_ROOM_TYPE = "org.matrix.msc1772.type"
+
 
 class RoomEncryptionAlgorithms:
     MEGOLM_V1_AES_SHA2 = "m.megolm.v1.aes-sha2"