user: fix bug in kick_from_portals
This commit is contained in:
@@ -379,7 +379,7 @@ class User(DBUser, AbstractUser, BaseUser):
|
|||||||
if not self.config["bridge.kick_on_logout"]:
|
if not self.config["bridge.kick_on_logout"]:
|
||||||
return
|
return
|
||||||
portals = await self.get_cached_portals()
|
portals = await self.get_cached_portals()
|
||||||
for _, portal in portals.values():
|
for portal in portals.values():
|
||||||
if not portal or portal.deleted or not portal.mxid or portal.has_bot:
|
if not portal or portal.deleted or not portal.mxid or portal.has_bot:
|
||||||
continue
|
continue
|
||||||
if portal.peer_type == "user":
|
if portal.peer_type == "user":
|
||||||
|
|||||||
Reference in New Issue
Block a user