mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-31 18:53:10 -06:00
Set powerlevel.invite to 0
This commit is contained in:
parent
2b0a5adfaf
commit
71b4aeb639
|
|
@ -227,6 +227,13 @@ func createRoom(
|
|||
HistoryVisibility: historyVisibilityShared,
|
||||
}
|
||||
|
||||
// NOTSPEC: The powerlevel for invite should be set to 50, according to the spec, but synapse sets it to 0 for invite.
|
||||
// https://github.com/matrix-org/synapse/blob/6d14b3dabfe38c6ae487d0f663e294056b6cc056/synapse/handlers/room.py#L120-L133
|
||||
isPrivateChat := r.Preset == presetPrivateChat || r.Preset == presetTrustedPrivateChat
|
||||
if r.PowerLevelContentOverride == nil && isPrivateChat {
|
||||
r.PowerLevelContentOverride = []byte(`{ "invite": 0 }`)
|
||||
}
|
||||
|
||||
if r.PowerLevelContentOverride != nil {
|
||||
// Merge powerLevelContentOverride fields by unmarshalling it atop the defaults
|
||||
err = json.Unmarshal(r.PowerLevelContentOverride, &powerLevelContent)
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ The only membership state included in a gapped incremental sync is for senders i
|
|||
# Blacklisted out of flakiness after #1479
|
||||
Invited user can reject local invite after originator leaves
|
||||
Invited user can reject invite for empty room
|
||||
If user leaves room, remote user changes device and rejoins we see update in /sync and /keys/changes
|
||||
|
||||
# Blacklisted due to flakiness
|
||||
Forgotten room messages cannot be paginated
|
||||
|
|
|
|||
|
|
@ -601,3 +601,4 @@ Can query remote device keys using POST after notification
|
|||
Device deletion propagates over federation
|
||||
Get left notifs in sync and /keys/changes when other user leaves
|
||||
Remote banned user is kicked and may not rejoin until unbanned
|
||||
If user leaves room, remote user changes device and rejoins we see update in /sync and /keys/changes
|
||||
|
|
|
|||
Loading…
Reference in a new issue