From 2f34ebfed92df5d30ea10909582faa1c6a99867f Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 12 Aug 2025 16:20:45 +0300 Subject: [PATCH] Disable kicking unauthenticated joiners too --- mautrix_telegram/matrix.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mautrix_telegram/matrix.py b/mautrix_telegram/matrix.py index 55fd3bec..fe6b3d46 100644 --- a/mautrix_telegram/matrix.py +++ b/mautrix_telegram/matrix.py @@ -155,14 +155,6 @@ class MatrixHandler(BaseMatrixHandler): room_id, user.mxid, "You are not whitelisted on this Telegram bridge." ) return - elif not await user.is_logged_in() and not portal.has_bot: - await portal.main_intent.kick_user( - room_id, - user.mxid, - "This chat does not have a bot on the Telegram side for relaying messages sent by" - " unauthenticated Matrix users.", - ) - return self.log.debug(f"{user.mxid} joined {room_id}") if await user.is_logged_in() or portal.has_bot: