Fix incorrect default "Invite level" (#1371)

This commit is contained in:
Richard van der Hoff 2022-12-08 10:41:00 +00:00 committed by GitHub
parent 5d40118116
commit 9555cbe5a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 13 deletions

View file

@ -437,21 +437,25 @@ them.
#### Definitions
**Required Power Level** \
A given event type has an associated *required power level*. This is
given by the current `m.room.power_levels` event. The event type is
either listed explicitly in the `events` section or given by either
`state_default` or `events_default` depending on if the event is a state
event or not.
Required Power Level
**Invite Level, Kick Level, Ban Level, Redact Level** \
The levels given by the `invite`, `kick`, `ban`, and `redact` properties
in the current `m.room.power_levels` state. Each defaults to 50 if
unspecified.
: A given event type has an associated *required power level*. This is given by
the current [`m.room.power_levels`](/client-server-api/#mroompower_levels)
event. The event type is either listed explicitly in the `events` section or
given by either `state_default` or `events_default` depending on if the event
is a state event or not.
**Target User** \
For an `m.room.member` state event, the user given by the `state_key` of
the event.
Invite Level, Kick Level, Ban Level, Redact Level
: The levels given by the `invite`, `kick`, `ban`, and `redact` properties in
the current [`m.room.power_levels`](/client-server-api/#mroompower_levels)
state. The invite level defaults to 0 if unspecified. The kick level, ban level
and redact level each default to 50 if unspecified.
Target User
: For an [`m.room.member`](/client-server-api/#mroommember) state event, the
user given by the `state_key` of the event.
{{% boxes/warning %}}
Some [room versions](/rooms) accept power level values to be represented as