diff --git a/room_access_rules/__init__.py b/room_access_rules/__init__.py index 61a60f2..f69a809 100644 --- a/room_access_rules/__init__.py +++ b/room_access_rules/__init__.py @@ -192,6 +192,11 @@ async def on_create_room( requester.user.to_string() ) + # This preset should put all invitees as admin, so do it + if preset == RoomCreationPreset.TRUSTED_PRIVATE_CHAT: + for invitee in config.get("invite", []): + default_power_levels["users"][invitee] = 100 + # Check if the creator can override values for the power levels. allowed = self._is_power_level_content_allowed( config.get("power_level_content_override", {}),