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:
parent
82d64b9b37
commit
46ace01fea
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue