Skip to content

Commit

Permalink
Remove unenforced size limit on room names (#3669)
Browse files Browse the repository at this point in the history
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 <aaron@raim.ist>
  • Loading branch information
aaronraimist committed Feb 22, 2022
1 parent d7d52e8 commit 2e63733
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/3669.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove unenforced size limit on the `name` field of `m.room.name` events.
2 changes: 1 addition & 1 deletion data/event-schemas/schema/m.room.name.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e63733

Please sign in to comment.