summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-11-06 10:59:03 +0000
committerBrendan Abolivier <babolivier@matrix.org>2019-11-06 10:59:03 +0000
commit70d93cafdb4a3055849e7b84881cfd6225f0b6e5 (patch)
treeb3f05d0884939569fcd5bfe658014177f029b708
parentUpdate changelog (diff)
downloadsynapse-70d93cafdb4a3055849e7b84881cfd6225f0b6e5.tar.xz
Update insert
-rw-r--r--synapse/storage/data_stores/main/events_bg_updates.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/storage/data_stores/main/events_bg_updates.py b/synapse/storage/data_stores/main/events_bg_updates.py
index a703927471..2fcb0c33dc 100644
--- a/synapse/storage/data_stores/main/events_bg_updates.py
+++ b/synapse/storage/data_stores/main/events_bg_updates.py
@@ -537,7 +537,12 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
                     txn=txn,
                     table="event_labels",
                     values=[
-                        {"event_id": event_id, "label": label}
+                        {
+                            "event_id": event_id,
+                            "label": label,
+                            "room_id": event_json["room_id"],
+                            "topological_ordering": event_json["depth"],
+                        }
                         for label in event_json["content"].get(
                             EventContentFields.Labels, []
                         )