diff options
Diffstat (limited to 'clientapi')
-rw-r--r-- | clientapi/routing/createroom.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clientapi/routing/createroom.go b/clientapi/routing/createroom.go index d40d84a7..3f92b7ba 100644 --- a/clientapi/routing/createroom.go +++ b/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 |