hark-store: bunt cache before rebuilding

Previously, rebuilding the cache in any scenario other than on-load would add
missing notifications but not remove read or dismissed notifications

Fixes urbit/landscape#479
This commit is contained in:
Liam Fitzgerald 2021-02-26 09:58:48 +10:00
parent 8c84de618d
commit 86bc8b9444
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -767,6 +767,8 @@
++ inflate-cache
|= state-4
^+ +.state
=. +.state
*cache
=/ nots=(list [p=@da =timebox:store])
(tap:orm notifications)
|- =* outer $