From d71609e546663fc46886a42a1ae69c328f888750 Mon Sep 17 00:00:00 2001 From: Dat PHAM HOANG Date: Fri, 3 Jan 2025 21:09:12 +0700 Subject: [PATCH] TF-3385 Fix Map spam/unspam from fromIterable to fromEntries --- .../presentation/controller/mailbox_dashboard_controller.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/features/mailbox_dashboard/presentation/controller/mailbox_dashboard_controller.dart b/lib/features/mailbox_dashboard/presentation/controller/mailbox_dashboard_controller.dart index 49c5cfd549..2f5daca595 100644 --- a/lib/features/mailbox_dashboard/presentation/controller/mailbox_dashboard_controller.dart +++ b/lib/features/mailbox_dashboard/presentation/controller/mailbox_dashboard_controller.dart @@ -1370,7 +1370,7 @@ class MailboxDashBoardController extends ReloadableController spamMailboxId!, MoveAction.moving, EmailActionType.moveToSpam), - Map.fromIterable( + Map.fromEntries( listEmail .where((email) => email.id != null) .map((email) => MapEntry(email.id!, email.hasRead)), @@ -1421,7 +1421,7 @@ class MailboxDashBoardController extends ReloadableController inboxMailboxId, MoveAction.moving, EmailActionType.unSpam), - Map.fromIterable( + Map.fromEntries( listEmail .where((email) => email.id != null) .map((email) => MapEntry(email.id!, email.hasRead)),