mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-06 08:06:47 +00:00
Fix when we select email frequently, sometime, email view displays not selected email
This commit is contained in:
1 parent
7674353735
commit
2baf754cc1
1 file changed
+4
@@ -202,6 +202,10 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
|
||||
Stream<Either<Failure, Success>> get downloadProgressState => _downloadProgressStateController.stream;
|
||||
|
||||
PresentationEmail? get currentEmail {
|
||||
if (PlatformInfo.isMobile &&
|
||||
_threadDetailController?.isThreadDetailEnabled != true) {
|
||||
return mailboxDashBoardController.selectedEmail.value;
|
||||
}
|
||||
return _currentEmailId == null
|
||||
? null
|
||||
: _threadDetailController?.emailIdsPresentation[_currentEmailId];
|
||||
|
||||
Reference in new issue
Block a user