mirror of
https://github.com/urbit/shrub.git
synced 2024-11-30 22:15:47 +03:00
Merge pull request #2518 from urbit/m/chat-hook-watch-nack
chat-hook: clear all subscriptions on watch-nack
This commit is contained in:
commit
bee7f67d45
@ -605,14 +605,11 @@
|
||||
?~ saw [~ state]
|
||||
?+ wir [~ state]
|
||||
[%store @ *]
|
||||
[~ state(synced (~(del by synced) t.wir))]
|
||||
(poke-chat-hook-action %remove t.wir)
|
||||
::
|
||||
[%backlog @ @ @ *]
|
||||
=/ pax `path`(oust [(dec (lent t.wir)) 1] `(list @ta)`t.wir)
|
||||
=. synced (~(del by synced) pax)
|
||||
:_ state
|
||||
:- [%give %fact [/synced]~ %chat-hook-update !>([%initial synced])]
|
||||
%. ~
|
||||
%. (poke-chat-hook-action %remove pax)
|
||||
%- slog
|
||||
:* leaf+"chat-hook failed subscribe on {(spud pax)}"
|
||||
leaf+"stack trace:"
|
||||
|
Loading…
Reference in New Issue
Block a user