mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-02 07:06:41 +03:00
hark-store: crash on invalid note read
Two %read-note actions set on the same notification could cause the cache to become invalid. Instead, crash if we read a note that is already read.
This commit is contained in:
parent
9c30e4e126
commit
ad2cd89310
@ -448,6 +448,7 @@
|
||||
&(=(read read.u.not) !?=(?(%read-note %unread-note) -.in))
|
||||
~& >> "Inconsistent hark cache, rebuilding"
|
||||
rebuild-cache
|
||||
?< &(=(read read.u.not) ?=(?(%read-note %unread-note) -.in))
|
||||
=. u.tib
|
||||
(~(put by u.tib) index u.not(read read))
|
||||
=. notifications
|
||||
|
Loading…
Reference in New Issue
Block a user