Break infinite loop on redaction in v3 rooms

This commit is contained in:
Richard van der Hoff 2019-01-31 00:23:58 +00:00
parent 62962e30e4
commit decb5698b3

View file

@ -177,7 +177,7 @@ class EventsWorkerStore(SQLBaseStore):
# Starting in room version v3, some redactions need to be rechecked if we
# didn't have the redacted event at the time, so we recheck on read
# instead.
if not allow_rejected and entry.event.type == EventTypes.Redaction:
if not allow_rejected and entry.event.type == EventTypes.Redaction and False:
if entry.event.internal_metadata.need_to_check_redaction():
orig = yield self.get_event(
entry.event.redacts,