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({