This commit is contained in:
Cyberes 2023-03-19 21:38:19 -06:00
parent cb8af1412b
commit dccfd90cac
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ def is_thread(event: RoomMessageText):
async def is_this_our_thread(client: AsyncClient, room: MatrixRoom, event: RoomMessageText, command_flag: str):
base_event_id = event.source['content'].get('m.relates_to', {}).get('event_id')
print(base_event_id)
logger.debug(base_event_id)
if base_event_id:
logging.debug((await client.room_get_event(room.room_id, base_event_id)).event.body)
return (await client.room_get_event(room.room_id, base_event_id)).event.body.startswith(f'{command_flag} ')