diff options
author | Erik Johnston <erik@matrix.org> | 2021-05-05 13:52:41 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2021-05-05 15:06:27 +0100 |
commit | 3d937d23fdbe29b6f5939403a238521641a78ec8 (patch) | |
tree | 0210542b5a9981a1e39010f42acba2d021cbe0b9 /synapse/handlers/message.py | |
parent | Remvoe dictionary based access form events (diff) | |
download | synapse-3d937d23fdbe29b6f5939403a238521641a78ec8.tar.xz |
Don't use DictProperty
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r-- | synapse/handlers/message.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index a9364670a1..d4684755bc 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -1108,7 +1108,7 @@ class EventCreationHandler: # it's not a self-redaction (to avoid having to look up whether the # user is actually admin or not). is_admin_redaction = False - if event.type == EventTypes.Redaction: + if event.type == EventTypes.Redaction and event.redacts: original_event = await self.store.get_event( event.redacts, redact_behaviour=EventRedactBehaviour.AS_IS, @@ -1195,7 +1195,7 @@ class EventCreationHandler: # TODO: Make sure the signatures actually are correct. event.signatures.update(returned_invite.signatures) - if event.type == EventTypes.Redaction: + if event.type == EventTypes.Redaction and event.redacts: original_event = await self.store.get_event( event.redacts, redact_behaviour=EventRedactBehaviour.AS_IS, |