Skip to content

Group DMs with empty name field have no name #31276

@robintown

Description

@robintown

Steps to reproduce

  1. create a dm room
  2. give the room a name
  3. change the room name to empty. (remove the name and click save) (or set the state event manually)
  4. the m.room.name state event content will be {name: ""}
  5. check the room name and the room list (you will see what is presented below)

Outcome

What did you expect?

If Alice and Bob are the other participants in the room, the name shown in the client should be "Alice and Bob".

For reference, I expect this behavior because https://spec.matrix.org/unstable/client-server-api/#mroomname says that empty name fields should be treated the same as if no name was ever set.

What happened instead?

The name is empty:

Image Image

Operating system

NixOS 25.05

Browser information

Firefox 145.0

URL for webapp

develop.element.io

Application version

Element version: dd89cee-js-c7a75c882479 Crypto version: Rust SDK 0.14.0 (c3b7918), Vodozemac 0.9.0

Homeserver

Synapse 1.135.2

Will you send logs?

No

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions