From 4c54d9c9ea7ce36c48783b55f8a7c0e2cc636452 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 10 Sep 2018 00:11:02 +0300 Subject: [PATCH] Fix previous commit (ref #219) and update catch_up config comment --- example-config.yaml | 2 +- mautrix_telegram/abstract_user.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example-config.yaml b/example-config.yaml index 9b387de9..55ec2968 100644 --- a/example-config.yaml +++ b/example-config.yaml @@ -133,7 +133,7 @@ bridge: # Remember that proper sticker support always requires Pillow to convert webp into png. native_stickers: true # Whether or not to fetch and handle Telegram updates at startup from the time the bridge was down. - # WARNING: Probably buggy, might get stuck in infinite loop. + # Currently only works for private chats and normal groups. catch_up: false # Whether or not to use /sync to get presence, read receipts and typing notifications when using # your own Matrix account as the Matrix puppet for your Telegram account. diff --git a/mautrix_telegram/abstract_user.py b/mautrix_telegram/abstract_user.py index e3f8819e..fdca5459 100644 --- a/mautrix_telegram/abstract_user.py +++ b/mautrix_telegram/abstract_user.py @@ -353,7 +353,7 @@ class AbstractUser(ABC): async def update_message(self, original_update: UpdateMessage) -> None: update, sender, portal = self.get_message_details(original_update) - if self.bot and not portal.mxid: + if self.is_bot and not portal.mxid: self.log.debug(f"Ignoring message received by bot in unbridged chat %s", portal.tgid_log) return