find dm room with only bot and user in it
This commit is contained in:
parent
eeb39b8aea
commit
08264b9e75
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue