From f0e0869f96b52e397438af18b1882c1a66192b06 Mon Sep 17 00:00:00 2001 From: dab246 Date: Tue, 24 Dec 2024 10:12:27 +0700 Subject: [PATCH] TF-3372 Fix [MU] Emptying trash: Many unnecessary `Email/query + Email/get` requests --- lib/features/thread/presentation/thread_controller.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/features/thread/presentation/thread_controller.dart b/lib/features/thread/presentation/thread_controller.dart index 36d944d58..c279b8982 100644 --- a/lib/features/thread/presentation/thread_controller.dart +++ b/lib/features/thread/presentation/thread_controller.dart @@ -439,9 +439,7 @@ class ThreadController extends BaseController with EmailActionController { } canLoadMore = newListEmail.length >= ThreadConstants.maxCountEmails; - if (mailboxDashBoardController.emailsInCurrentMailbox.isEmpty) { - refreshAllEmail(); - } else if (PlatformInfo.isWeb) { + if (PlatformInfo.isWeb) { _validateBrowserHeight(); } }