Skip to content

Commit

Permalink
Adjust kick message when user joins portal with no relaybot
Browse files Browse the repository at this point in the history
Closes #875
  • Loading branch information
tulir committed Oct 16, 2023
1 parent 8c1ddec commit 812b4ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mautrix_telegram/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ async def handle_join(self, room_id: RoomID, user_id: UserID, event_id: EventID)
await portal.main_intent.kick_user(
room_id,
user.mxid,
"This chat does not have a bot relaying messages for unauthenticated users.",
"This chat does not have a bot on the Telegram side for relaying messages sent by"
" unauthenticated Matrix users.",
)
return

Expand Down

0 comments on commit 812b4ec

Please sign in to comment.