This commit is contained in:
Cyberes 2023-03-18 14:08:16 -06:00
parent 7b43ca028b
commit dcf4b08945
1 changed files with 4 additions and 1 deletions

View File

@ -76,7 +76,10 @@ class Callbacks:
api_data = [] api_data = []
for event in thread_content: for event in thread_content:
if isinstance(event, MegolmEvent): 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 return
else: else:
api_data.append({ api_data.append({