Check for connectivity, not login status, on join from Matrix

Because connectivity is a cached & more specific than login status
This commit is contained in:
Andrew Ferrazzutti 2022-05-16 02:09:06 -04:00
parent 82d64b9b37
commit 46ace01fea
1 changed files with 2 additions and 2 deletions

View File

@ -96,12 +96,12 @@ class MatrixHandler(BaseMatrixHandler):
)
return
elif (
not await user.is_logged_in()
not user.is_connected
and not portal.has_relay
and not self.config["bridge.allow_invites"]
):
await portal.main_intent.kick_user(
room_id, user.mxid, "You are not logged in to this KakaoTalk bridge."
room_id, user.mxid, "You are not connected to this KakaoTalk bridge."
)
return