Give PL100 to invited users in trusted_private_chat preset

This commit is contained in:
Neil Alexander 2022-05-24 09:36:55 +01:00
parent c83837e684
commit a914b8c646
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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