find dm room with only bot and user in it

This commit is contained in:
HgO 2024-08-12 13:24:47 +02:00
parent eeb39b8aea
commit 08264b9e75

View file

@ -206,6 +206,9 @@ class MatrixClientPool:
f"Bot {account.id} | Found {len(room_members)} room members in {room_id}"
)
if len(room_members) > len(self._matrix_clients) + 1:
continue
all_accounts_in_room = True
for user_id in unactive_user_ids:
if user_id not in room_members: