diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-11-06 10:59:03 +0000 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2019-11-06 10:59:03 +0000 |
commit | 70d93cafdb4a3055849e7b84881cfd6225f0b6e5 (patch) | |
tree | b3f05d0884939569fcd5bfe658014177f029b708 /synapse/storage | |
parent | Update changelog (diff) | |
download | synapse-70d93cafdb4a3055849e7b84881cfd6225f0b6e5.tar.xz |
Update insert
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/data_stores/main/events_bg_updates.py | 7 |
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, [] ) |