Disable kicking unauthenticated joiners too

This commit is contained in:
Tulir Asokan
2025-08-12 16:20:45 +03:00
parent b65a1cc60a
commit 2f34ebfed9
-8
View File
@@ -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: