From 46ace01fea87016810b5a59db0a4d360884f2d0d Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Mon, 16 May 2022 02:09:06 -0400 Subject: [PATCH] Check for connectivity, not login status, on join from Matrix Because connectivity is a cached & more specific than login status --- matrix_appservice_kakaotalk/matrix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix_appservice_kakaotalk/matrix.py b/matrix_appservice_kakaotalk/matrix.py index 62b4437..d2216de 100644 --- a/matrix_appservice_kakaotalk/matrix.py +++ b/matrix_appservice_kakaotalk/matrix.py @@ -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