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
|
return
|
||||||
elif (
|
elif (
|
||||||
not await user.is_logged_in()
|
not user.is_connected
|
||||||
and not portal.has_relay
|
and not portal.has_relay
|
||||||
and not self.config["bridge.allow_invites"]
|
and not self.config["bridge.allow_invites"]
|
||||||
):
|
):
|
||||||
await portal.main_intent.kick_user(
|
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
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user