Skip to content
This repository has been 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
manuroe opened this issue Nov 16, 2018 · 4 comments
Closed

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

manuroe opened this issue Nov 16, 2018 · 4 comments
Assignees
Labels
z-bug (Deprecated Label) z-p2 (Deprecated Label)

Comments

@manuroe
Copy link
Contributor

manuroe commented Nov 16, 2018

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.

@Half-Shot
Copy link
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...

@richvdh
Copy link
Member

richvdh commented May 10, 2019

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.

@turt2live
Copy link
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.

@babolivier babolivier self-assigned this Jun 5, 2019
@babolivier
Copy link
Contributor

Fixed in #5089

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
z-bug (Deprecated Label) z-p2 (Deprecated Label)
Projects
None yet
Development

No branches or pull requests

6 participants