Skip to content

Commit

Permalink
Fix relaybot messages being allowed through with ignore_own_incoming_…
Browse files Browse the repository at this point in the history
…events set
  • Loading branch information
tulir committed Jan 25, 2020
1 parent 82f7905 commit b7e69dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mautrix_telegram/abstract_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def __init__(self) -> None:
self.client = None
self.is_relaybot = False
self.is_bot = False
self.relaybot = None

@property
def connected(self) -> bool:
Expand Down Expand Up @@ -423,7 +422,7 @@ async def update_message(self, original_update: UpdateMessage) -> None:
return

if self.ignore_incoming_bot_events and self.relaybot and sender.id == self.relaybot.tgid:
self.log.debug(f"Ignoring relaybot-sent message %s to %s", update, portal.tgid_log)
self.log.debug(f"Ignoring relaybot-sent message %s to %s", update.id, portal.tgid_log)
return

if isinstance(update, MessageService):
Expand Down

0 comments on commit b7e69dd

Please sign in to comment.