diff --git a/changelogs/client_server/1479.clarification b/changelogs/client_server/1479.clarification new file mode 100644 index 00000000..f1c4b178 --- /dev/null +++ b/changelogs/client_server/1479.clarification @@ -0,0 +1 @@ +Remove outdated text saying that `state_default` is 0 if there is no `m.room.power_levels` event in a room. diff --git a/data/event-schemas/schema/m.room.power_levels.yaml b/data/event-schemas/schema/m.room.power_levels.yaml index a24b2e44..7c778c55 100644 --- a/data/event-schemas/schema/m.room.power_levels.yaml +++ b/data/event-schemas/schema/m.room.power_levels.yaml @@ -18,11 +18,10 @@ description: |- `events_default` for Message Events and `state_default` for State Events. - If there is no `state_default` in the `m.room.power_levels` event, the - `state_default` is 50. If there is no `events_default` in the - `m.room.power_levels` event, the `events_default` is 0. If the room - contains no `m.room.power_levels` event, *both* the `state_default` and - `events_default` are 0. + If there is no `state_default` in the `m.room.power_levels` event, or + there is no `m.room.power_levels` event, the `state_default` is 50. + If there is no `events_default` in the `m.room.power_levels` event, + or there is no `m.room.power_levels` event, the `events_default` is 0. The power level required to invite a user to the room, kick a user from the room, ban a user from the room, or redact an event sent by another user, is @@ -33,15 +32,6 @@ description: |- **Note:** - As noted above, in the absence of an `m.room.power_levels` event, the - `state_default` is 0, and all users are considered to have power level 0. - That means that **any** member of the room can send an - `m.room.power_levels` event, changing the permissions in the room. - - Server implementations should therefore ensure that each room has an - `m.room.power_levels` event as soon as it is created. See also the - documentation of the `/createRoom` API. - The allowed range for power level values is `[-(2**53)+1, (2**53)-1]`, as required by the [Canonical JSON specification](/appendices/#canonical-json).