Skip to content

Commit

Permalink
Mention that state_default can be zero by default. (#1478)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
turt2live and uhoreg committed Mar 31, 2023
1 parent ac8d34b commit 7670a74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/1478.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Further clarify that `state_default` on `m.room.power_levels` is 0 when no power levels event is in the room.
3 changes: 3 additions & 0 deletions data/event-schemas/schema/m.room.power_levels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 `m.room.power_levels` event in the room, this defaults
to 0. See description for more information.
type: integer
users:
additionalProperties:
Expand Down

0 comments on commit 7670a74

Please sign in to comment.