Ignore invalid redactions in _get_event_from_row

pull/5784/head
Brendan Abolivier 2019-07-31 15:11:27 +02:00
parent 0fda4e2e50
commit c4e56a8ee9
No known key found for this signature in database
GPG Key ID: 1E015C145F1916CD
1 changed files with 5 additions and 0 deletions

View File

@ -579,6 +579,11 @@ class EventsWorkerStore(SQLBaseStore):
if because.room_id != original_ev.room_id:
redacted_event = None
else:
# The lack of a redaction likely means that the redaction is invalid
# and therefore not returned by get_event, so it should be safe to
# just ignore it here.
redacted_event = None
cache_entry = _EventCacheEntry(
event=original_ev, redacted_event=redacted_event