refactor: Logic cleanup

This commit is contained in:
Ginger committed 2026-07-04 13:15:54 -04:00
1 parent e0a754483a
commit d2b795d8cf
1 file changed
+3 -3
+3 -3
View File
@@ -340,14 +340,14 @@ pub(crate) async fn create_room_route(
let mut creators: Vec<OwnedUserId> = vec![sender_user.to_owned()];
if preset == RoomPreset::TrustedPrivateChat {
for recipient_user in &invitees {
for recipient_user in invitees.iter().cloned() {
if room_version_rules
.authorization
.explicitly_privilege_room_creators
{
creators.push(recipient_user.to_owned());
creators.push(recipient_user);
} else {
power_levels_to_grant.insert(recipient_user.clone(), int!(100));
power_levels_to_grant.insert(recipient_user, int!(100));
}
}
}