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

Open
Glandos opened this issue Dec 8, 2024 · 2 comments
Open

Web "crash" on first sync #544

Glandos opened this issue Dec 8, 2024 · 2 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

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