opt: unread msg

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-09 13:02:36 +08:00
parent df81a33ae0
commit c8ad94343a

View File

@@ -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;
}