Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2026-01-02 12:05:31 +08:00
parent 80e007bac6
commit 041af37bb0
67 changed files with 775 additions and 838 deletions

View File

@@ -59,8 +59,8 @@ class WhisperController extends CommonWhisperController<SessionMainReply> {
Future<void> queryMsgFeedUnread() async {
final res = await ImGrpc.getTotalUnread(unreadType: 2);
if (res.isSuccess) {
final data = MsgFeedUnread.fromJson(res.data.msgFeedUnread.unread);
if (res case Success(:final response)) {
final data = MsgFeedUnread.fromJson(response.msgFeedUnread.unread);
final unreadCounts = [data.reply, data.at, data.like, data.sysMsg];
if (!listEquals(this.unreadCounts, unreadCounts)) {
this.unreadCounts.value = unreadCounts;