fix: fix unread notification count to exclude dismissed and accepted (#2261)

This commit is contained in:
Jonathan Rainville 2021-07-06 12:07:41 -04:00 committed by GitHub
parent 44fe606155
commit 491e2a84c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
0.80.5
0.80.6

View File

@ -310,6 +310,6 @@ func (db sqlitePersistence) MarkActivityCenterNotificationsRead(ids []types.HexB
func (db sqlitePersistence) UnreadActivityCenterNotificationsCount() (uint64, error) {
var count uint64
err := db.db.QueryRow(`SELECT COUNT(1) FROM activity_center_notifications WHERE NOT read`).Scan(&count)
err := db.db.QueryRow(`SELECT COUNT(1) FROM activity_center_notifications WHERE NOT read AND NOT dismissed AND NOT accepted`).Scan(&count)
return count, err
}