🐛 Fix mark all read will reset the viewed at

This commit is contained in:
2025-08-22 22:42:32 +08:00
parent 76c8bbf307
commit 50e888b075

View File

@@ -208,6 +208,7 @@ public class PushService
var now = SystemClock.Instance.GetCurrentInstant();
await _db.Notifications
.Where(n => n.AccountId == accountId)
.Where(n => n.ViewedAt == null)
.ExecuteUpdateAsync(s => s.SetProperty(n => n.ViewedAt, now));
}