summary refs log tree commit diff
path: root/synapse/handlers/federation.py
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/handlers/federation.py
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/handlers/federation.py')
-rw-r--r--synapse/handlers/federation.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index daf1d3bfb3..77df9185f6 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -507,6 +507,7 @@ class FederationHandler(BaseHandler):
             await self.store.upsert_room_on_join(
                 room_id=room_id,
                 room_version=room_version_obj,
+                auth_events=auth_chain,
             )
 
             max_stream_id = await self._persist_auth_tree(