From 136b5c9231dde8f5b95f495e60b5d2315608a886 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Tue, 5 Apr 2022 15:01:23 +0100 Subject: [PATCH] Correct the default for `invite` in `m.room.power_levels` (#1021) Per #860, this has been wrong in the spec forever. --- changelogs/client_server/newsfragments/1021.clarification | 1 + data/event-schemas/schema/m.room.power_levels.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 changelogs/client_server/newsfragments/1021.clarification diff --git a/changelogs/client_server/newsfragments/1021.clarification b/changelogs/client_server/newsfragments/1021.clarification new file mode 100644 index 00000000..11df2bfc --- /dev/null +++ b/changelogs/client_server/newsfragments/1021.clarification @@ -0,0 +1 @@ +Correct the default value for `invite` where it is not specified in an `m.room.power_levels` event. diff --git a/data/event-schemas/schema/m.room.power_levels.yaml b/data/event-schemas/schema/m.room.power_levels.yaml index 39c1988c..ae38f88c 100644 --- a/data/event-schemas/schema/m.room.power_levels.yaml +++ b/data/event-schemas/schema/m.room.power_levels.yaml @@ -26,10 +26,10 @@ description: |- 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 - defined by `invite`, `kick`, `ban`, and `redact`, respectively. Each - of these levels defaults to 50 if they are not specified in the + defined by `invite`, `kick`, `ban`, and `redact`, respectively. The levels + for `kick`, `ban` and `redact` default to 50 if they are not specified in the `m.room.power_levels` event, or if the room contains no `m.room.power_levels` - event. + event. `invite` defaults to 0 in either case. **Note:** @@ -60,7 +60,7 @@ properties: overridden by the `events` key. Defaults to 0 if unspecified. type: integer invite: - description: The level required to invite a user. Defaults to 50 if unspecified. + description: The level required to invite a user. Defaults to 0 if unspecified. type: integer kick: description: The level required to kick a user. Defaults to 50 if unspecified.