Give PL100 to invited users in `trusted_private_chat` preset
MODIFY
clientapi/routing/createroom.go
clientapi/routing/createroom.go
@@ -245,7 +245,9 @@ func createRoom(
case presetTrustedPrivateChat:
joinRuleContent.JoinRule = gomatrixserverlib.Invite
historyVisibilityContent.HistoryVisibility = historyVisibilityShared
- // TODO If trusted_private_chat, all invitees are given the same power level as the room creator.
+ for _, invitee := range r.Invite {
+ powerLevelContent.Users[invitee] = 100
+ }
case presetPublicChat:
joinRuleContent.JoinRule = gomatrixserverlib.Public
historyVisibilityContent.HistoryVisibility = historyVisibilityShared

Give PL100 to invited users in `trusted_private_chat` preset (#2485)