Skip to content

Conversation

@TheOneWithTheBraid
Copy link
Contributor

I ran into a funny bug :

  • you get a new invite for a direct chat (in my case sent from Element)
  • join the invite
  • kill your client before ever loading the hero user
  • your chat will for ever be called "Empty chat"

I figured out I ran into a state issue where the summary's mHeros was an empty list (not null !) but a direct chat user actually exists. The Room.getLocalizedDisplayname method now returns Empty chat as even an empty hero list is prioritized over a direct chat MXID. Right now, the direct chat MXID is only used if there is not even a hero list set.

I'd propose to simply override the hero list with the direct chat MXID in case the list is empty.

Signed-off-by: The one with the braid <info@braid.business>
@TheOneWithTheBraid TheOneWithTheBraid requested a review from a team as a code owner February 1, 2025 12:42
Copy link
Contributor

@coder-with-a-bushido coder-with-a-bushido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. LGTM :)

@coder-with-a-bushido coder-with-a-bushido merged commit 0960e35 into famedly:main Feb 1, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants