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