TF-78 Update state email and count unread current mailbox when mark as read & unread multiple selected email

This commit is contained in:
dab246
2021-09-15 12:14:22 +07:00
committed by Dat H. Pham
parent e7bf7f782e
commit 8721b08f33
6 changed files with 89 additions and 19 deletions
@@ -14,10 +14,10 @@ extension PresentationEmailExtension on PresentationEmail {
return '';
}
PresentationEmail markAsReadPresentationEmail({required bool unRead}) {
PresentationEmail markAsReadPresentationEmail({required bool isUnread}) {
var newKeyWord = keywords;
if (unRead) {
if (isUnread) {
newKeyWord?.removeWhere((key, value) => key == KeyWordIdentifier.emailSeen);
} else {
if (newKeyWord == null) {