From c8ad94343aeca60f3e3b196555a9aa023ccf7857 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Thu, 9 Jan 2025 13:02:36 +0800 Subject: [PATCH] opt: unread msg Signed-off-by: bggRGjQaUbCoE --- lib/pages/main/controller.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/pages/main/controller.dart b/lib/pages/main/controller.dart index 7a46346df..f53cd6bd3 100644 --- a/lib/pages/main/controller.dart +++ b/lib/pages/main/controller.dart @@ -74,10 +74,7 @@ class MainController extends GetxController { } Future queryUnreadMsg() async { - if (isLogin.value.not || homeIndex == -1) { - return; - } - if (msgUnReadTypes.isEmpty) { + if (isLogin.value.not || homeIndex == -1 || msgUnReadTypes.isEmpty) { msgUnReadCount.value = ''; return; }