s/dictionary/object

This commit is contained in:
Richard van der Hoff 2022-10-04 17:26:47 +01:00
parent 764863054d
commit 9eac310bdc
6 changed files with 7 additions and 7 deletions

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

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

View file

@ -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,

View file

@ -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,