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

Web "crash" on first sync #544

Closed
Glandos opened this issue Dec 8, 2024 · 4 comments
Closed

Web "crash" on first sync #544

Glandos opened this issue Dec 8, 2024 · 4 comments

Comments

@Glandos
Copy link

Glandos commented Dec 8, 2024

On first sync, it takes a while, and then web ui is blank.
There's an error in console:

Uncaught TypeError: t.content is undefined
    Ar index-CS1frOQh.js:formatted:6435

This is in

if ((evt.type === "m.room.message" || evt.type === "m.sticker") && typeof evt.content.body === "string") {
because evt.content is undefined. evt has decryption error, and there's no content.

Maybe it should be good to catch this for a better first-user experience :)

@tulir
Copy link
Owner

tulir commented Dec 8, 2024

The first check (evt.type === "m.room.message" || evt.type === "m.sticker") will not be true if the event failed to decrypt, so there has to be some other issue causing it.

@tulir
Copy link
Owner

tulir commented Dec 8, 2024

Could be related to edits, those replace the content without touching type

@tulir
Copy link
Owner

tulir commented Mar 1, 2025

Might be fixed by 83ea1c1

@Glandos
Copy link
Author

Glandos commented Mar 1, 2025

I wasn't able to reproduce it for a long time.

@Glandos Glandos closed this as completed Mar 1, 2025
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

No branches or pull requests

2 participants