Skip to content

Commit 136b5c9

Browse files
authored
Correct the default for invite in m.room.power_levels (#1021)
Per #860, this has been wrong in the spec forever.
1 parent 03cdea4 commit 136b5c9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Correct the default value for `invite` where it is not specified in an `m.room.power_levels` event.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ description: |-
2626
2727
The power level required to invite a user to the room, kick a user from the
2828
room, ban a user from the room, or redact an event sent by another user, is
29-
defined by `invite`, `kick`, `ban`, and `redact`, respectively. Each
30-
of these levels defaults to 50 if they are not specified in the
29+
defined by `invite`, `kick`, `ban`, and `redact`, respectively. The levels
30+
for `kick`, `ban` and `redact` default to 50 if they are not specified in the
3131
`m.room.power_levels` event, or if the room contains no `m.room.power_levels`
32-
event.
32+
event. `invite` defaults to 0 in either case.
3333
3434
**Note:**
3535
@@ -60,7 +60,7 @@ properties:
6060
overridden by the `events` key. Defaults to 0 if unspecified.
6161
type: integer
6262
invite:
63-
description: The level required to invite a user. Defaults to 50 if unspecified.
63+
description: The level required to invite a user. Defaults to 0 if unspecified.
6464
type: integer
6565
kick:
6666
description: The level required to kick a user. Defaults to 50 if unspecified.

0 commit comments

Comments
 (0)