Fix relaybot messages being allowed through with ignore_own_incoming_events set

This commit is contained in:
Tulir Asokan
2020-01-25 23:36:17 +02:00
parent 82f7905367
commit b7e69ddc61
+1 -2
View File
@@ -97,7 +97,6 @@ class AbstractUser(ABC):
self.client = None
self.is_relaybot = False
self.is_bot = False
self.relaybot = None
@property
def connected(self) -> bool:
@@ -423,7 +422,7 @@ class AbstractUser(ABC):
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):