Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Lazy loading: the CS API should provide heroes if room name is "" #4194

Closed

Description

@manuroe

Description

Riot clients remove an existing display name by setting an empty string ("").
If that happens on live, matrix clients will be likely to compute a display name like "Bob and 3 others" as specced by the room summary.
But if a matrix client does an initial sync, it will give an "Empty room" name to the room because it receives no heroes.

Steps to reproduce

On a Riot client:

  • create a room with people in there
  • set a room display name
  • remove it
  • Do an initial /sync by clearing the cache.

-> The room will be named "Empty room" instead of "Bob and 3 others" or stg.

Activity

  1. Half-Shot commented on Nov 17, 2018

    @Half-Shot
    Collaborator

    I kinda wish matrix client's set the name state to either empty content or nulled the name rather than an empty string as it's probably a valid thing in itself to have your room title be empty. However, it's probably not worth trying to change that behaviour now...

  2. richvdh commented on May 10, 2019

    @richvdh
    Member

    I don't think it's practical to fix this without a spec which defines how it is supposed to work, cf matrix-org/matrix-spec-proposals#1868.

  3. turt2live commented on May 28, 2019

    @turt2live
    Member

    My interpretation of MSC688 is that m.heroes should include left members only if there are no other joined members - writing spec to say that.

  4. self-assigned this
    on Jun 5, 2019
  5. babolivier commented on Jun 6, 2019

    @babolivier
    Contributor

    Fixed in #5089

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

z-bug(Deprecated Label)z-p2(Deprecated Label)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions