From bffd1daeeb008975b491ea74d6cb6ced05f4045f Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 30 Mar 2023 12:20:57 -0600 Subject: [PATCH 1/3] Mention that `state_default` can be zero by default. --- data/event-schemas/schema/m.room.power_levels.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/event-schemas/schema/m.room.power_levels.yaml b/data/event-schemas/schema/m.room.power_levels.yaml index a24b2e446..3beed1d84 100644 --- a/data/event-schemas/schema/m.room.power_levels.yaml +++ b/data/event-schemas/schema/m.room.power_levels.yaml @@ -75,6 +75,9 @@ properties: description: |- The default level required to send state events. Can be overridden by the `events` key. Defaults to 50 if unspecified. + + **Note**: When there is no power levels event in the room, this defaults + to 0. See description for more information. type: integer users: additionalProperties: From f307c7e202b82f039733452ec91341af89aa24f4 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 30 Mar 2023 12:22:20 -0600 Subject: [PATCH 2/3] Changelog --- changelogs/client_server/newsfragments/1478.clarification | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelogs/client_server/newsfragments/1478.clarification diff --git a/changelogs/client_server/newsfragments/1478.clarification b/changelogs/client_server/newsfragments/1478.clarification new file mode 100644 index 000000000..df90d2789 --- /dev/null +++ b/changelogs/client_server/newsfragments/1478.clarification @@ -0,0 +1 @@ +Further clarify that `state_default` on `m.room.power_levels` is 0 when no power levels event is in the room. \ No newline at end of file From 88b21e933192ab89e3225981a69a934998e2ea3f Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 30 Mar 2023 20:51:09 -0600 Subject: [PATCH 3/3] Update data/event-schemas/schema/m.room.power_levels.yaml Co-authored-by: Hubert Chathi --- data/event-schemas/schema/m.room.power_levels.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/event-schemas/schema/m.room.power_levels.yaml b/data/event-schemas/schema/m.room.power_levels.yaml index 3beed1d84..c3ea94aac 100644 --- a/data/event-schemas/schema/m.room.power_levels.yaml +++ b/data/event-schemas/schema/m.room.power_levels.yaml @@ -76,7 +76,7 @@ properties: The default level required to send state events. Can be overridden by the `events` key. Defaults to 50 if unspecified. - **Note**: When there is no power levels event in the room, this defaults + **Note**: When there is no `m.room.power_levels` event in the room, this defaults to 0. See description for more information. type: integer users: