Update insert

This commit is contained in:
Brendan Abolivier 2019-11-06 10:59:03 +00:00
parent f5d8fdf0a7
commit 70d93cafdb
No known key found for this signature in database
GPG Key ID: 1E015C145F1916CD
1 changed files with 6 additions and 1 deletions

View File

@ -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, []
)