Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Room name breaks Room Details #1119

Open
herkulessi opened this issue Jun 26, 2023 · 0 comments
Open

Missing Room name breaks Room Details #1119

herkulessi opened this issue Jun 26, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@herkulessi
Copy link

Describe the bug
Hydrogen can't cope with a nonexistent Room name when showing Room Details
It replaces the Avatar with a Stacktrace and the Room name with null Room list and room Header are not affected, only the Room-Detail-View itself is affected.

The Stacktrace I mentioned:

Cannot read properties of null (reading 'charAt')
This occurred while running at Dg (https://h2.herkulessi.de/assets/index.e11ecb48.js:29:3990).

TypeError: Cannot read properties of null (reading 'charAt')
    at Re (https://h2.herkulessi.de/assets/index.e11ecb48.js:26:77319)
    at get avatarLetter [as avatarLetter] (https://h2.herkulessi.de/assets/index.e11ecb48.js:27:62300)
    at wt._avatarLetterChanged (https://h2.herkulessi.de/assets/index.e11ecb48.js:30:8646)
    at wt.mount (https://h2.herkulessi.de/assets/index.e11ecb48.js:30:8777)
    at Ki (https://h2.herkulessi.de/assets/index.e11ecb48.js:29:3915)
    at Ec.view (https://h2.herkulessi.de/assets/index.e11ecb48.js:30:6503)
    at df.render (https://h2.herkulessi.de/assets/index.e11ecb48.js:30:41505)
    at df.mount (https://h2.herkulessi.de/assets/index.e11ecb48.js:30:3961)
    at Ki (https://h2.herkulessi.de/assets/index.e11ecb48.js:29:3915)
    at Ec.view (https://h2.herkulessi.de/assets/index.e11ecb48.js:30:6503)

To Reproduce
Unsure, I believe every Room should have a Name, no Idea where it got lost for this room. The Room in question was the alpine-linux Room (#_oftc_#alpine-linux:matrix.org) which should be named #alpine-linux

Expected behavior
Avatar with maybe an E from Empty Room (that's what the room shows up as in the Room list) and Empty Room as Room name

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Arch Linux
  • Browser: Chromium
  • Version: 114.0.5735.133

Additional context
While I do host my own Hydrogen Instance, its just built from source and should be on the same version as hydrogen.element.io.
Which should be the latest release Version 0.4.0 (1048412018)

@MidhunSureshR MidhunSureshR added the bug Something isn't working label Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants