summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-09-08 10:00:43 -0400
committerGitHub <noreply@github.com>2021-09-08 10:00:43 -0400
commit0288e6033b08149867e742283bb0139f10b66b01 (patch)
tree968d6379f70b6d30c4ba861bf2cd3fc1db61df10 /synapse/api
parentChange logging of puppeted requests to better differentiate users (#10779) (diff)
downloadsynapse-0288e6033b08149867e742283bb0139f10b66b01.tar.xz
Add a constant for m.federate. (#10775)
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/constants.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py
index 5f0f34119b..236f0c7f99 100644
--- a/synapse/api/constants.py
+++ b/synapse/api/constants.py
@@ -198,6 +198,9 @@ class EventContentFields:
     # cf https://github.com/matrix-org/matrix-doc/pull/1772
     ROOM_TYPE = "type"
 
+    # Whether a room can federate.
+    FEDERATE = "m.federate"
+
     # The creator of the room, as used in `m.room.create` events.
     ROOM_CREATOR = "creator"