fix DM issues
This commit is contained in:
parent
3eaef3cf07
commit
d33e0e5a4d
|
@ -91,7 +91,7 @@ class Callbacks:
|
||||||
# room.member_count > 2 ... we assume a public room
|
# room.member_count > 2 ... we assume a public room
|
||||||
# room.member_count <= 2 ... we assume a DM
|
# room.member_count <= 2 ... we assume a DM
|
||||||
# General message listener
|
# 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)
|
await self.client.room_typing(room.room_id, typing_state=True, timeout=3000)
|
||||||
thread_content = await get_thread_content(self.client, room, event)
|
thread_content = await get_thread_content(self.client, room, event)
|
||||||
api_data = []
|
api_data = []
|
||||||
|
|
Loading…
Reference in New Issue