From 9eac310bdcb94ef9cd5c6065ff2a263c8f061b85 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 4 Oct 2022 17:26:47 +0100 Subject: [PATCH] s/dictionary/object --- content/rooms/fragments/v1-auth-rules.md | 2 +- content/rooms/fragments/v3-auth-rules.md | 2 +- content/rooms/fragments/v8-auth-rules.md | 2 +- content/rooms/v10.md | 4 ++-- content/rooms/v6.md | 2 +- content/rooms/v7.md | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/content/rooms/fragments/v1-auth-rules.md b/content/rooms/fragments/v1-auth-rules.md index 0f7cd2b8..8684e8fb 100644 --- a/content/rooms/fragments/v1-auth-rules.md +++ b/content/rooms/fragments/v1-auth-rules.md @@ -110,7 +110,7 @@ The rules are as follows: 9. If the event has a `state_key` that starts with an `@` and does not match the `sender`, reject. 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 that is an integer), reject. 2. If there is no previous `m.room.power_levels` event in the room, diff --git a/content/rooms/fragments/v3-auth-rules.md b/content/rooms/fragments/v3-auth-rules.md index 508978ce..16dc8bf5 100644 --- a/content/rooms/fragments/v3-auth-rules.md +++ b/content/rooms/fragments/v3-auth-rules.md @@ -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 match the `sender`, reject. 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 that is an integer), reject. 2. If there is no previous `m.room.power_levels` event in the room, diff --git a/content/rooms/fragments/v8-auth-rules.md b/content/rooms/fragments/v8-auth-rules.md index edb8e7ca..4ba3e5ff 100644 --- a/content/rooms/fragments/v8-auth-rules.md +++ b/content/rooms/fragments/v8-auth-rules.md @@ -130,7 +130,7 @@ The rules are as follows: 8. If the event has a `state_key` that starts with an `@` and does not match the `sender`, reject. 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 that is an integer), reject. 2. If there is no previous `m.room.power_levels` event in the room, diff --git a/content/rooms/v10.md b/content/rooms/v10.md index aecd1336..7086434a 100644 --- a/content/rooms/v10.md +++ b/content/rooms/v10.md @@ -211,9 +211,9 @@ The rules are as follows: not an integer, reject. 2. {{< added-in this="true" >}} 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. - 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. 4. If there is no previous `m.room.power_levels` event in the room, allow. diff --git a/content/rooms/v6.md b/content/rooms/v6.md index 879d749b..f6e6e372 100644 --- a/content/rooms/v6.md +++ b/content/rooms/v6.md @@ -155,7 +155,7 @@ The rules are as follows: 8. If the event has a `state_key` that starts with an `@` and does not match the `sender`, reject. 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 that is an integer), reject. 2. If there is no previous `m.room.power_levels` event in the room, diff --git a/content/rooms/v7.md b/content/rooms/v7.md index d5ac447f..50e3319b 100644 --- a/content/rooms/v7.md +++ b/content/rooms/v7.md @@ -147,7 +147,7 @@ The rules are as follows: 8. If the event has a `state_key` that starts with an `@` and does not match the `sender`, reject. 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 that is an integer), reject. 2. If there is no previous `m.room.power_levels` event in the room,