This commit is contained in:
timedout 2026-01-09 16:37:04 +00:00 committed by GitHub
commit ef1ae7bab5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

1
changelog.d/19321.bugfix Normal file
View file

@ -0,0 +1 @@
Fix joining a restricted v12 room locally when no local room creator is present but local users with sufficient power levels are. Contributed by @nexy7574.

View file

@ -172,7 +172,7 @@ class EventAuthHandler:
if len(local_creators) > 0:
chosen_user = local_creators.pop() # random creator
user_power_level = CREATOR_POWER_LEVEL
else:
if chosen_user is None:
chosen_user = max(
local_users_in_room,
key=lambda user: users.get(user, users_default_level),