fix: Give invitees creator status when creating a trusted private v12 room

This commit is contained in:
Ginger committed 2026-07-04 13:06:49 -04:00
1 parent b61f0af98a
commit e0a754483a
1 file changed
+9 -2
+9 -2
View File
@@ -337,14 +337,21 @@ pub(crate) async fn create_room_route(
});
let mut power_levels_to_grant = BTreeMap::from_iter([(sender_user.to_owned(), int!(100))]);
let mut creators: Vec<OwnedUserId> = vec![sender_user.to_owned()];
if preset == RoomPreset::TrustedPrivateChat {
for recipient_user in &invitees {
power_levels_to_grant.insert(recipient_user.clone(), int!(100));
if room_version_rules
.authorization
.explicitly_privilege_room_creators
{
creators.push(recipient_user.to_owned());
} else {
power_levels_to_grant.insert(recipient_user.clone(), int!(100));
}
}
}
let mut creators: Vec<OwnedUserId> = vec![sender_user.to_owned()];
// Do we care about additional_creators?
if room_version_rules
.authorization