diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-05-24 10:10:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-24 10:10:25 +0100 |
commit | 7379b02b703ff6cd56a0eb806aeb5249b09232c0 (patch) | |
tree | 3d3ab1420967133a734ce0eb706c8c9cf06884a2 /clientapi | |
parent | c83837e684347563c068c5ca4849090695bc97d0 (diff) |
Give PL100 to invited users in `trusted_private_chat` preset (#2485)
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 |