Skip to content

Commit caefda5

Browse files
committed
Disable kicking unauthenticated users
1 parent e1b181e commit caefda5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mautrix_telegram/portal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ async def _sync_telegram_users(
12001200
continue
12011201
if mx_user.is_bot:
12021202
await mx_user.unregister_portal(*self.tgid_full)
1203-
if not self.has_bot:
1203+
if not self.has_bot and mx_user.tgid:
12041204
try:
12051205
await self.main_intent.kick_user(
12061206
self.mxid, mx_user.mxid, "You had left this Telegram chat."

0 commit comments

Comments
 (0)