mirror of
https://github.com/urbit/shrub.git
synced 2024-12-23 19:05:48 +03:00
parent
4af01cdf53
commit
1f0b6d5a9c
@ -204,6 +204,7 @@ function unreadEach(json: any, state: HarkState): HarkState {
|
||||
function unreads(json: any, state: HarkState): HarkState {
|
||||
const data = _.get(json, 'unreads');
|
||||
if(data) {
|
||||
state = clearState(state);
|
||||
data.forEach(({ index, stats }) => {
|
||||
const { unreads, notifications, last } = stats;
|
||||
updateNotificationStats(state, index, 'last', () => last);
|
||||
|
Loading…
Reference in New Issue
Block a user