feat: Separate in method: _syncLabelForOpenedEmail & add const for LabelKeywordIsNull
This commit is contained in:
+15
-7
@@ -49,16 +49,24 @@ extension HandleLogicLabelExtension on MailboxDashBoardController {
|
||||
_refreshLabelSettingEnabled();
|
||||
|
||||
if (isEmailOpened) {
|
||||
dispatchEmailUIAction(
|
||||
SyncUpdateLabelForEmailOnMemory(
|
||||
emailId: emailId,
|
||||
labelKeyword: labelKeyword,
|
||||
shouldRemove: shouldRemove,
|
||||
),
|
||||
);
|
||||
_syncLabelForOpenedEmail(emailId, labelKeyword, shouldRemove);
|
||||
}
|
||||
}
|
||||
|
||||
void _syncLabelForOpenedEmail(
|
||||
EmailId emailId,
|
||||
KeyWordIdentifier labelKeyword,
|
||||
bool shouldRemove,
|
||||
) {
|
||||
dispatchEmailUIAction(
|
||||
SyncUpdateLabelForEmailOnMemory(
|
||||
emailId: emailId,
|
||||
labelKeyword: labelKeyword,
|
||||
shouldRemove: shouldRemove,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
void _syncLabelForEmailList(
|
||||
EmailId emailId,
|
||||
KeyWordIdentifier labelKeyword,
|
||||
|
||||
Reference in New Issue
Block a user