Skip to content

Commit 5951275

Browse files
turt2liveuhoreg
authored andcommitted
Mention that state_default can be zero by default. (matrix-org#1478)
* Mention that `state_default` can be zero by default. * Changelog * Update data/event-schemas/schema/m.room.power_levels.yaml Co-authored-by: Hubert Chathi <[email protected]> --------- Co-authored-by: Hubert Chathi <[email protected]>
1 parent 9e76e56 commit 5951275

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Further clarify that `state_default` on `m.room.power_levels` is 0 when no power levels event is in the room.

data/event-schemas/schema/m.room.power_levels.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ properties:
7575
description: |-
7676
The default level required to send state events. Can be overridden
7777
by the `events` key. Defaults to 50 if unspecified.
78+
79+
**Note**: When there is no `m.room.power_levels` event in the room, this defaults
80+
to 0. See description for more information.
7881
type: integer
7982
users:
8083
additionalProperties:

0 commit comments

Comments
 (0)