mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-28 03:58:39 +00:00
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user