mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 22:33:06 +03:00
parent
a4d717030d
commit
899ead25fb
@ -661,8 +661,7 @@
|
||||
unreads-each (~(run by unreads-each) _~)
|
||||
notifications (~(run by notifications) _~)
|
||||
==
|
||||
=> rebuild-cache
|
||||
seen
|
||||
(give:seen:rebuild-cache %read-all ~)
|
||||
::
|
||||
++ set-dnd
|
||||
|= d=?
|
||||
|
@ -112,6 +112,14 @@ function reduce(data: any, state: HarkState) {
|
||||
unreadEach(data, state);
|
||||
seenIndex(data, state);
|
||||
removeGraph(data, state);
|
||||
readAll(data, state);
|
||||
}
|
||||
|
||||
function readAll(json: any, state: HarkState) {
|
||||
const data = _.get(json, 'read-all');
|
||||
if(data) {
|
||||
clearState(state);
|
||||
}
|
||||
}
|
||||
|
||||
function removeGraph(json: any, state: HarkState) {
|
||||
|
Loading…
Reference in New Issue
Block a user