From 2e63733beba3da99b266146cf8492852e8eaa631 Mon Sep 17 00:00:00 2001 From: Aaron Raimist Date: Tue, 22 Feb 2022 12:36:31 -0600 Subject: [PATCH] Remove unenforced size limit on room names (#3669) Fixes #3641 The spec says the name field in m.room.name events must not exceed 255 bytes but no servers actually enforce this over the C-S API. Clients should probably already be truncating room names to an appropriate length for their user interface. Signed-off-by: Aaron Raimist --- changelogs/client_server/newsfragments/3669.clarification | 1 + data/event-schemas/schema/m.room.name.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelogs/client_server/newsfragments/3669.clarification diff --git a/changelogs/client_server/newsfragments/3669.clarification b/changelogs/client_server/newsfragments/3669.clarification new file mode 100644 index 00000000..795c0de9 --- /dev/null +++ b/changelogs/client_server/newsfragments/3669.clarification @@ -0,0 +1 @@ +Remove unenforced size limit on the `name` field of `m.room.name` events. \ No newline at end of file diff --git a/data/event-schemas/schema/m.room.name.yaml b/data/event-schemas/schema/m.room.name.yaml index bbc5fc9a..c9236de0 100644 --- a/data/event-schemas/schema/m.room.name.yaml +++ b/data/event-schemas/schema/m.room.name.yaml @@ -17,7 +17,7 @@ properties: content: properties: name: - description: The name of the room. This MUST NOT exceed 255 bytes. + description: The name of the room. type: string required: - name