From 76d0ead99ffbf0fe0256332c68808cc2289c8b26 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Tue, 10 May 2022 01:11:45 -0400 Subject: [PATCH] Make disconnections an important notice --- matrix_appservice_kakaotalk/user.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/matrix_appservice_kakaotalk/user.py b/matrix_appservice_kakaotalk/user.py index c7b7912..8e11c35 100644 --- a/matrix_appservice_kakaotalk/user.py +++ b/matrix_appservice_kakaotalk/user.py @@ -749,7 +749,10 @@ class User(DBUser, BaseUser): reason_suffix = "To reconnect, use the `sync` command." else: reason_suffix = "You are now logged out. To log back in, use the `login` command." - await self.send_bridge_notice(f"Disconnected from KakaoTalk: {reason_str} {reason_suffix}") + await self.send_bridge_notice( + f"Disconnected from KakaoTalk: {reason_str} {reason_suffix}", + important=True, + ) async def on_error(self, error: JSON) -> None: await self.send_bridge_notice(