Apply suggestions from code review

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
Travis Ralston 2022-06-08 14:34:48 -06:00 committed by GitHub
parent 1e2f4f651d
commit 2b7483a224
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ deprecated behaviours are strictly no longer supported.
##### Values in `m.room.power_levels` events must be integers
In other room versions, such as [v9](/rooms/v9/#power-levels-accepted-as-strings),
In other room versions, such as [v9](/rooms/v9/#mroompower_levels-events-accept-values-as-strings),
power levels could be represented as strings for backwards compatibility.
This backwards compatibility is removed in this room version - power levels MUST NOT
@ -205,7 +205,7 @@ The rules are as follows:
`ban`, `redact`, `kick`, or `invite` in `content` are present and
not an integer, reject.
2. {{< added-in this="true" >}}
If any of the keys `events` or `notifications` in `content`
If either of the keys `events` or `notifications` in `content`
are present and not a dictionary with values that are integers,
reject.
3. If `users` key in `content` is not a dictionary with keys that