update room validation to use 'not room' for clarity

This commit is contained in:
kc1awv
2026-01-01 21:32:47 -05:00
parent ba427fac1c
commit ee6446e134
+2 -2
View File
@@ -2239,7 +2239,7 @@ class HubService:
# Registration rules: requester must be in the room and must be the founder.
# (No server-op override by design.)
if (
room is None
not room
or self._norm_room(room) != r
or r not in self.sessions.get(link, {}).get("rooms", set())
):
@@ -2315,7 +2315,7 @@ class HubService:
return True
if (
room is None
not room
or self._norm_room(room) != r
or r not in self.sessions.get(link, {}).get("rooms", set())
):