Skip to content

Commit

Permalink
Redact decryption error if error is resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Oct 9, 2020
1 parent 9b0450c commit e7fd4ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mautrix/bridge/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ async def _handle_encrypted_wait(self, evt: EncryptedEvent, err: SessionNotFound
except DecryptionError as e:
msg = f"\u26a0 Your message was not bridged: {e}"
else:
await self.az.intent.redact(evt.room_id, event_id)
await self.int_handle_event(decrypted)
return
else:
Expand Down

0 comments on commit e7fd4ee

Please sign in to comment.