Ignore redactions of redactions in get_events_as_list

pull/5784/head
Brendan Abolivier 2019-07-31 15:48:57 +02:00
parent c4e56a8ee9
commit 35ec13baab
No known key found for this signature in database
GPG Key ID: 1E015C145F1916CD
1 changed files with 1 additions and 4 deletions

View File

@ -272,10 +272,7 @@ class EventsWorkerStore(SQLBaseStore):
if orig_event_info["room_id"] != entry.event.room_id:
# Don't process redactions if the redacted event doesn't belong to the
# redaction's room.
continue
if orig_event_info["type"] == EventTypes.Redaction:
# Don't process redactions of redactions.
logger.info("Ignoring redation in another room.")
continue
if entry.event.internal_metadata.need_to_check_redaction():