From dcf4b08945d61739f160a77bbec7e1549649d840 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Sat, 18 Mar 2023 14:08:16 -0600 Subject: [PATCH] f --- matrix_gpt/bot/callbacks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/matrix_gpt/bot/callbacks.py b/matrix_gpt/bot/callbacks.py index b314266..33fef28 100644 --- a/matrix_gpt/bot/callbacks.py +++ b/matrix_gpt/bot/callbacks.py @@ -76,7 +76,10 @@ class Callbacks: api_data = [] for event in thread_content: if isinstance(event, MegolmEvent): - await send_text_to_room(self.client, room.room_id, 'Decryption Failure', reply_to_event_id=event.event_id, thread=True, thread_root_id=thread_content[0].event_id) + resp = await send_text_to_room(self.client, room.room_id, 'Decryption Failure', reply_to_event_id=event.event_id, thread=True, thread_root_id=thread_content[0].event_id) + logger.critical(f'Decryption failure for event {event.event_id} in room {room.room_id}') + await self.client.room_typing(room.room_id, typing_state=False, timeout=3000) + self.store.add_event_id(resp.event_id) return else: api_data.append({