summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorEric Eastwood <erice@element.io>2021-09-01 10:27:58 -0500
committerGitHub <noreply@github.com>2021-09-01 16:27:58 +0100
commitdc75fb7f0552e6a9903a7c173672c96610219ec0 (patch)
tree8fe524605f2d8e45629ccddc5d36c68e779f6f33 /synapse/api
parentMerge tag 'v1.42.0rc1' into develop (diff)
downloadsynapse-dc75fb7f0552e6a9903a7c173672c96610219ec0.tar.xz
Populate `rooms.creator` field for easy lookup (#10697)
Part of https://github.com/matrix-org/synapse/pull/10566

 - Fill in creator whenever we insert into the rooms table
 - Add background update to backfill any missing creator values
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 829061c870..5e34eb7e13 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"
 
+    # The creator of the room, as used in `m.room.create` events.
+    ROOM_CREATOR = "creator"
+
     # Used on normal messages to indicate they were historically imported after the fact
     MSC2716_HISTORICAL = "org.matrix.msc2716.historical"
     # For "insertion" events to indicate what the next chunk ID should be in