-
Notifications
You must be signed in to change notification settings - Fork 88
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
base: feature/thread-master-0.16.0
Are you sure you want to change the base?
TF-3731 Thread Detail Cache web #3840
Conversation
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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to 20
} 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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed no memory leak
1a46574
to
9aecebb
Compare
Issue
Demo
Screen.Recording.2025-06-26.at.08.53.56.mov