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

fix(maillist): Ensure we only switch to index data after its loaded #1625

Merged

Conversation

castaway
Copy link
Contributor

@castaway castaway commented Nov 19, 2024

Only switch to index data after its actually loaded, don't accidentally switch back to the API messagelist., or redo folder counts until user actions are finished.

Also fix an issue where switching from non-folders (Compose/Drafts/Overview) to a folder (by clicking on the Folder name), would display the contents of Inbox, regardless of which folder was selected.

Seems the issue was childRouteActivated - runs when the non-folder router outlet (aka compose, drafts et al) deactivates, and was setting selectedFolder to Inbox, generally after switchToFolder et al had switched the folder (so we switched it to chosen folder, then back to Inbox after the deactivation)

Fixes: #1622

Fixes: #1564

@castaway castaway force-pushed the castaway/1564_messagelist_speed_fun branch from 591f168 to d010fae Compare November 26, 2024 12:27
@castaway castaway requested a review from shadowbas November 26, 2024 12:45
@castaway castaway merged commit 11997c1 into runbox:master Dec 4, 2024
5 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.

Wrong route and folder selected on folder click #Index: Message list goes blank after login with local index
2 participants