From 163342570c5d8d303a0c852de59905cad99a5bd2 Mon Sep 17 00:00:00 2001 From: Johannes Becker Date: Thu, 14 Jul 2022 08:41:30 +0200 Subject: [PATCH] Clarify the power levels integer range Signed-off-by: Johannes Becker --- data/event-schemas/schema/m.room.power_levels.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/event-schemas/schema/m.room.power_levels.yaml b/data/event-schemas/schema/m.room.power_levels.yaml index ae38f88c4..81dc34093 100644 --- a/data/event-schemas/schema/m.room.power_levels.yaml +++ b/data/event-schemas/schema/m.room.power_levels.yaml @@ -5,6 +5,10 @@ description: |- This event specifies the minimum level a user must have in order to perform a certain action. It also specifies the levels of each user in the room. + The range of power levels is specified by the [Canonical JSON specification](https://spec.matrix.org/v1.3/appendices/#canonical-json), + which allows a range of `[-(2**53)+1, (2**53)-1]` for integers. Leading zeros + are not allowed. + If a `user_id` is in the `users` list, then that `user_id` has the associated power level. Otherwise they have the default level `users_default`. If `users_default` is not supplied, it is assumed to be