From 7d20c5b732ea54ffa2219eca3d7bd85c45b9615a Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 19 Dec 2020 12:54:58 +0200 Subject: [PATCH] Fix deduplicating forwarded messages. Fixes #549 --- mautrix_telegram/portal/deduplication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mautrix_telegram/portal/deduplication.py b/mautrix_telegram/portal/deduplication.py index 938f7317..82faafc9 100644 --- a/mautrix_telegram/portal/deduplication.py +++ b/mautrix_telegram/portal/deduplication.py @@ -63,7 +63,7 @@ class PortalDedup: else: hash_content = [event.date.timestamp(), event.message.strip()] if event.fwd_from: - hash_content += [event.fwd_from.from_id, event.fwd_from.channel_id] + hash_content += [event.fwd_from.from_id] elif isinstance(event, Message) and event.media: try: hash_content += {