From caefda582b0ba43f53cb66e5c0dffc65ab22b890 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 19 Jan 2025 20:38:39 +0200 Subject: [PATCH] Disable kicking unauthenticated users --- mautrix_telegram/portal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mautrix_telegram/portal.py b/mautrix_telegram/portal.py index 40190987..44e3544f 100644 --- a/mautrix_telegram/portal.py +++ b/mautrix_telegram/portal.py @@ -1200,7 +1200,7 @@ class Portal(DBPortal, BasePortal): continue if mx_user.is_bot: await mx_user.unregister_portal(*self.tgid_full) - if not self.has_bot: + if not self.has_bot and mx_user.tgid: try: await self.main_intent.kick_user( self.mxid, mx_user.mxid, "You had left this Telegram chat."