mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 16:51:42 +03:00
notifications: update count on archive
This commit is contained in:
parent
ced3d7a079
commit
b009104f8b
@ -386,5 +386,7 @@ function archive(json: any, state: HarkState) {
|
||||
notifIdxEqual(index, idxNotif.index)
|
||||
);
|
||||
state.notifications.set(time, unarchived);
|
||||
const newlyRead = archived.filter(x => !x.notification.read).length;
|
||||
updateNotificationStats(state, index, 'notifications', (x) => x - newlyRead);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user