diff --git a/mautrix_telegram/portal.py b/mautrix_telegram/portal.py index 9e4ddf26..e38aa9f6 100644 --- a/mautrix_telegram/portal.py +++ b/mautrix_telegram/portal.py @@ -3236,12 +3236,7 @@ class Portal(DBPortal, BasePortal): await dbm.insert() await DBMessage.replace_temp_mxid(temporary_identifier, self.mxid, event_id) except (IntegrityError, UniqueViolationError) as e: - self.log.exception( - f"{e.__class__.__name__} while saving message mapping. " - "This might mean that an update was handled after it left the " - "dedup cache queue. You can try enabling bridge.deduplication." - "pre_db_check in the config." - ) + self.log.exception(f"{type(e).__name__} while saving message mapping") await intent.redact(self.mxid, event_id) return if isinstance(evt, Message) and evt.reactions: diff --git a/mautrix_telegram/portal_util/deduplication.py b/mautrix_telegram/portal_util/deduplication.py index 201cfb5b..f31d4f79 100644 --- a/mautrix_telegram/portal_util/deduplication.py +++ b/mautrix_telegram/portal_util/deduplication.py @@ -62,7 +62,6 @@ media_content_table = { class PortalDedup: - pre_db_check: bool = False cache_queue_length: int = 256 _dedup: deque[bytes | int]