diff --git a/matrix_appservice_kakaotalk/portal.py b/matrix_appservice_kakaotalk/portal.py index dbfd14a..367cec8 100644 --- a/matrix_appservice_kakaotalk/portal.py +++ b/matrix_appservice_kakaotalk/portal.py @@ -773,8 +773,8 @@ class Portal(DBPortal, BasePortal): sender, is_relay = await self.get_relay_sender(orig_sender, f"message {event_id}") if not sender: raise Exception("not logged in") - elif not sender.has_state: - raise Exception("not connected to KakaoTalk") + elif not sender.is_connected: + raise Exception("not connected to KakaoTalk chats") elif is_relay: await self.apply_relay_message_format(orig_sender, message) if message.msgtype == MessageType.TEXT or message.msgtype == MessageType.NOTICE: