summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-06-29 12:00:04 -0400
committerGitHub <noreply@github.com>2021-06-29 12:00:04 -0400
commitf55836929d3c64f3f8d883d8f3643a88b6c9cbca (patch)
treed819f59c143015da275191b3500e7da3eb3031b6 /synapse/api
parentFix `populate_stream_ordering2` background job (#10267) (diff)
downloadsynapse-f55836929d3c64f3f8d883d8f3643a88b6c9cbca.tar.xz
Do not recurse into non-spaces in the spaces summary. (#10256)
Previously m.child.room events in non-space rooms would be
treated as part of the room graph, but this is no longer
supported.
Diffstat (limited to 'synapse/api')
-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 414e4c019a..8363c2bb0f 100644
--- a/synapse/api/constants.py
+++ b/synapse/api/constants.py
@@ -201,6 +201,12 @@ class EventContentFields:
     )
 
 
+class RoomTypes:
+    """Understood values of the room_type field of m.room.create events."""
+
+    SPACE = "m.space"
+
+
 class RoomEncryptionAlgorithms:
     MEGOLM_V1_AES_SHA2 = "m.megolm.v1.aes-sha2"
     DEFAULT = MEGOLM_V1_AES_SHA2