user: fix bug in kick_from_portals

This commit is contained in:
Sumner Evans
2022-03-22 00:46:32 -06:00
parent 6f491bf7d1
commit 077ab2bb38
+1 -1
View File
@@ -379,7 +379,7 @@ class User(DBUser, AbstractUser, BaseUser):
if not self.config["bridge.kick_on_logout"]:
return
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:
continue
if portal.peer_type == "user":