Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect default "Invite level" #1371

Merged
merged 4 commits into from
Dec 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Correct the default invite level definition in the "Checks performed on receipt of a PDU" section.
34 changes: 19 additions & 15 deletions content/server-server-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

**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.

**Target User** \
For an `m.room.member` state event, the user given by the `state_key` of
the event.
Required Power Level

: 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.

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
Expand Down