Skip to content

Commit

Permalink
Disable kicking unauthenticated users
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jan 19, 2025
1 parent e1b181e commit caefda5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mautrix_telegram/portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ async def _sync_telegram_users(
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."
Expand Down

0 comments on commit caefda5

Please sign in to comment.