From e7fd4ee00d144947b318ac3e916610524824a6ef Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 9 Oct 2020 12:12:41 +0300 Subject: [PATCH] Redact decryption error if error is resolved --- mautrix/bridge/matrix.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mautrix/bridge/matrix.py b/mautrix/bridge/matrix.py index 421934b8..b86994f0 100644 --- a/mautrix/bridge/matrix.py +++ b/mautrix/bridge/matrix.py @@ -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: