feat: Use the displayed email id here, not only _currentEmailId.
This commit is contained in:
@@ -344,8 +344,8 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
|
|||||||
);
|
);
|
||||||
} else if (action is RemoveLabelFromEmailAction) {
|
} else if (action is RemoveLabelFromEmailAction) {
|
||||||
mailboxDashBoardController.clearEmailUIAction();
|
mailboxDashBoardController.clearEmailUIAction();
|
||||||
if (_currentEmailId == null ||
|
final displayedEmailId = _currentEmailId ?? currentEmail?.id;
|
||||||
action.emailId != _currentEmailId) {
|
if (displayedEmailId == null || action.emailId != displayedEmailId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mailboxDashBoardController.toggleLabelToEmail(
|
mailboxDashBoardController.toggleLabelToEmail(
|
||||||
@@ -355,8 +355,8 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
|
|||||||
);
|
);
|
||||||
} else if (action is SyncUpdateLabelForEmailOnMemory) {
|
} else if (action is SyncUpdateLabelForEmailOnMemory) {
|
||||||
mailboxDashBoardController.clearEmailUIAction();
|
mailboxDashBoardController.clearEmailUIAction();
|
||||||
if (_currentEmailId == null ||
|
final displayedEmailId = _currentEmailId ?? currentEmail?.id;
|
||||||
action.emailId != _currentEmailId) {
|
if (displayedEmailId == null || action.emailId != displayedEmailId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user