Skip to content

Commit

Permalink
Remove some unused fields
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Apr 13, 2022
1 parent 1f5b91c commit 7c2a569
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 1 addition & 6 deletions mautrix_telegram/portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -3236,12 +3236,7 @@ async def handle_telegram_message(
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:
Expand Down
1 change: 0 additions & 1 deletion mautrix_telegram/portal_util/deduplication.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@


class PortalDedup:
pre_db_check: bool = False
cache_queue_length: int = 256

_dedup: deque[bytes | int]
Expand Down

0 comments on commit 7c2a569

Please sign in to comment.