Skip to content

TF-3731 Thread Detail Cache web #3840

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

Open
wants to merge 3 commits into
base: feature/thread-master-0.16.0
Choose a base branch
from

Conversation

tddang-linagora
Copy link
Collaborator

Issue

Demo

Screen.Recording.2025-06-26.at.08.53.56.mov

@tddang-linagora tddang-linagora self-assigned this Jun 26, 2025
@tddang-linagora tddang-linagora linked an issue Jun 26, 2025 that may be closed by this pull request
3 tasks
Copy link

This PR has been deployed to https://linagora.github.io/tmail-flutter/3840.


extension UpdateCachedEmailLoaded on ThreadDetailController {
void cacheEmailLoaded(EmailId emailId, EmailLoaded emailLoaded) {
const cacheLimit = 10;
Copy link
Member

@dab246 dab246 Jun 26, 2025

Choose a reason for hiding this comment

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

why do we only use limit is 10?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated to 20

Comment on lines +410 to +415
} else if (action is CollapseEmailInThreadDetailAction) {
if (_currentEmailId == null || action.emailId != _currentEmailId) return;
for (var worker in obxListeners) {
worker.dispose();
}
Get.delete<SingleEmailController>(tag: _currentEmailId!.id.value);
Copy link
Member

Choose a reason for hiding this comment

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

Please check again memory leak for this case

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Confirmed no memory leak

@tddang-linagora tddang-linagora requested a review from dab246 June 26, 2025 03:44
@dab246 dab246 force-pushed the feature/thread-master-rebased branch from 1a46574 to 9aecebb Compare June 26, 2025 04:44
@tddang-linagora tddang-linagora changed the base branch from feature/thread-master-rebased to feature/thread-master-0.16.0 June 26, 2025 04:52
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.

[Thread] Cache for opened email in Thread
2 participants