fix async puppet default leave
This commit is contained in:
committed by
Tulir Asokan
parent
697fb06909
commit
35f59b5f95
@@ -343,7 +343,7 @@ class Puppet(BasePuppet):
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def default_puppet_should_leave_room(self, room_id: RoomID) -> bool:
|
async def default_puppet_should_leave_room(self, room_id: RoomID) -> bool:
|
||||||
portal: p.Portal = p.Portal.get_by_mxid(room_id)
|
portal: p.Portal = p.Portal.get_by_mxid(room_id)
|
||||||
return portal and not portal.backfill_lock.locked and portal.peer_type != "user"
|
return portal and not portal.backfill_lock.locked and portal.peer_type != "user"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user