0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 17:03:50 +01:00

Use a sensible default value for labels

This commit is contained in:
Brendan Abolivier 2019-10-31 14:47:09 +00:00
parent a46574281d
commit 07cb38e965
No known key found for this signature in database
GPG key ID: 1E015C145F1916CD

View file

@ -540,7 +540,7 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
"event_id": event_id,
"label": label,
}
for label in event_json["content"].get(LabelsField)
for label in event_json["content"].get(LabelsField, [])
]
)