mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 21:14:09 +01:00
s/dictionary/object
This commit is contained in:
parent
764863054d
commit
9eac310bdc
|
|
@ -110,7 +110,7 @@ The rules are as follows:
|
||||||
9. If the event has a `state_key` that starts with an `@` and does not
|
9. If the event has a `state_key` that starts with an `@` and does not
|
||||||
match the `sender`, reject.
|
match the `sender`, reject.
|
||||||
10. If type is `m.room.power_levels`:
|
10. If type is `m.room.power_levels`:
|
||||||
1. If the `users` property in `content` is not a dictionary with keys that
|
1. If the `users` property in `content` is not an object with keys that
|
||||||
are valid user IDs with values that are integers (or a string
|
are valid user IDs with values that are integers (or a string
|
||||||
that is an integer), reject.
|
that is an integer), reject.
|
||||||
2. If there is no previous `m.room.power_levels` event in the room,
|
2. If there is no previous `m.room.power_levels` event in the room,
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ The complete list of rules, as of room version 3, is as follows:
|
||||||
9. If the event has a `state_key` that starts with an `@` and does not
|
9. If the event has a `state_key` that starts with an `@` and does not
|
||||||
match the `sender`, reject.
|
match the `sender`, reject.
|
||||||
10. If type is `m.room.power_levels`:
|
10. If type is `m.room.power_levels`:
|
||||||
1. If `users` property in `content` is not a dictionary with keys that
|
1. If `users` property in `content` is not an object with keys that
|
||||||
are valid user IDs with values that are integers (or a string
|
are valid user IDs with values that are integers (or a string
|
||||||
that is an integer), reject.
|
that is an integer), reject.
|
||||||
2. If there is no previous `m.room.power_levels` event in the room,
|
2. If there is no previous `m.room.power_levels` event in the room,
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ The rules are as follows:
|
||||||
8. If the event has a `state_key` that starts with an `@` and does not
|
8. If the event has a `state_key` that starts with an `@` and does not
|
||||||
match the `sender`, reject.
|
match the `sender`, reject.
|
||||||
9. If type is `m.room.power_levels`:
|
9. If type is `m.room.power_levels`:
|
||||||
1. If the `users` property in `content` is not a dictionary with keys that
|
1. If the `users` property in `content` is not an object with keys that
|
||||||
are valid user IDs with values that are integers (or a string
|
are valid user IDs with values that are integers (or a string
|
||||||
that is an integer), reject.
|
that is an integer), reject.
|
||||||
2. If there is no previous `m.room.power_levels` event in the room,
|
2. If there is no previous `m.room.power_levels` event in the room,
|
||||||
|
|
|
||||||
|
|
@ -211,9 +211,9 @@ The rules are as follows:
|
||||||
not an integer, reject.
|
not an integer, reject.
|
||||||
2. {{< added-in this="true" >}}
|
2. {{< added-in this="true" >}}
|
||||||
If either of the properties `events` or `notifications` in `content`
|
If either of the properties `events` or `notifications` in `content`
|
||||||
are present and not a dictionary with values that are integers,
|
are present and not an object with values that are integers,
|
||||||
reject.
|
reject.
|
||||||
3. If `users` property in `content` is not a dictionary with keys that
|
3. If the `users` property in `content` is not an obiect with keys that
|
||||||
are valid user IDs with values that are integers, reject.
|
are valid user IDs with values that are integers, reject.
|
||||||
4. If there is no previous `m.room.power_levels` event in the room,
|
4. If there is no previous `m.room.power_levels` event in the room,
|
||||||
allow.
|
allow.
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,7 @@ The rules are as follows:
|
||||||
8. If the event has a `state_key` that starts with an `@` and does not
|
8. If the event has a `state_key` that starts with an `@` and does not
|
||||||
match the `sender`, reject.
|
match the `sender`, reject.
|
||||||
9. If type is `m.room.power_levels`:
|
9. If type is `m.room.power_levels`:
|
||||||
1. If the `users` property in `content` is not a dictionary with keys that
|
1. If the `users` property in `content` is not an object with keys that
|
||||||
are valid user IDs with values that are integers (or a string
|
are valid user IDs with values that are integers (or a string
|
||||||
that is an integer), reject.
|
that is an integer), reject.
|
||||||
2. If there is no previous `m.room.power_levels` event in the room,
|
2. If there is no previous `m.room.power_levels` event in the room,
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,7 @@ The rules are as follows:
|
||||||
8. If the event has a `state_key` that starts with an `@` and does not
|
8. If the event has a `state_key` that starts with an `@` and does not
|
||||||
match the `sender`, reject.
|
match the `sender`, reject.
|
||||||
9. If type is `m.room.power_levels`:
|
9. If type is `m.room.power_levels`:
|
||||||
1. If the `users` property in `content` is not a dictionary with keys that
|
1. If the `users` property in `content` is not an object with keys that
|
||||||
are valid user IDs with values that are integers (or a string
|
are valid user IDs with values that are integers (or a string
|
||||||
that is an integer), reject.
|
that is an integer), reject.
|
||||||
2. If there is no previous `m.room.power_levels` event in the room,
|
2. If there is no previous `m.room.power_levels` event in the room,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue