From d33e0e5a4db16e4a470fd2e0b8dd79ca05039d01 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Sun, 19 Mar 2023 19:56:54 -0600 Subject: [PATCH] fix DM issues --- matrix_gpt/bot/callbacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix_gpt/bot/callbacks.py b/matrix_gpt/bot/callbacks.py index 8cf2609..5e0c658 100644 --- a/matrix_gpt/bot/callbacks.py +++ b/matrix_gpt/bot/callbacks.py @@ -91,7 +91,7 @@ class Callbacks: # room.member_count > 2 ... we assume a public room # room.member_count <= 2 ... we assume a DM # General message listener - if not msg.startswith(f'{self.command_prefix} ') and is_thread(event) and (await is_this_our_thread(self.client, room, event, self.command_prefix or room.member_count == 2)): + if not msg.startswith(f'{self.command_prefix} ') and is_thread(event) and (await is_this_our_thread(self.client, room, event, self.command_prefix) or room.member_count == 2): await self.client.room_typing(room.room_id, typing_state=True, timeout=3000) thread_content = await get_thread_content(self.client, room, event) api_data = []