From 2e136e5a3c1631fa16217f1ae231c0afc4d797a3 Mon Sep 17 00:00:00 2001 From: RMBGAME Date: Sat, 23 Jul 2022 15:51:56 +0800 Subject: [PATCH] fix Notification HasRead --- src/ST.Client/Services/Mvvm/NotificationService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ST.Client/Services/Mvvm/NotificationService.cs b/src/ST.Client/Services/Mvvm/NotificationService.cs index 7a3e4761cac..13e4a71dd6f 100644 --- a/src/ST.Client/Services/Mvvm/NotificationService.cs +++ b/src/ST.Client/Services/Mvvm/NotificationService.cs @@ -130,6 +130,8 @@ public async Task> LoadHasReadRecord(List notices) var d = data.FirstOrDefault(f => f.Id == notice.Id); if (d != null) notice.HasRead = d.HasRead; + else + notice.HasRead = true; } } return notices;