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

perf: open chats faster (loadChat()) #4561

Merged
merged 3 commits into from
Jan 28, 2025
Merged

perf: open chats faster (loadChat()) #4561

merged 3 commits into from
Jan 28, 2025

Conversation

WofWca
Copy link
Collaborator

@WofWca WofWca commented Jan 25, 2025

No description provided.

})

// TODO why do we only do this when `firstUnreadMsgId !== null`?
Copy link
Member

Choose a reason for hiding this comment

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

good question, maybe it was meant as an optimisation attempt. I think we can try to change it.

Copy link
Member

@Simon-Laux Simon-Laux left a comment

Choose a reason for hiding this comment

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

Code LGTM, I didn't test it

@WofWca WofWca force-pushed the wofwca/perf-loadChat branch from 3d6ff93 to ecaf4a8 Compare January 28, 2025 12:40
`BasicChat.id` is never null.
...when chat has unread messages.

FYI The `setTimeout` part was introduced in
fe035bd
(#2750).
@WofWca WofWca force-pushed the wofwca/perf-loadChat branch from ecaf4a8 to bb6c715 Compare January 28, 2025 12:43
@WofWca WofWca merged commit e147f57 into main Jan 28, 2025
7 of 11 checks passed
@WofWca WofWca deleted the wofwca/perf-loadChat branch January 28, 2025 12:44
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