mirror of
https://github.com/urbit/shrub.git
synced 2024-12-02 21:34:04 +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]
|
?~ saw [~ state]
|
||||||
?+ wir [~ state]
|
?+ wir [~ state]
|
||||||
[%store @ *]
|
[%store @ *]
|
||||||
[~ state(synced (~(del by synced) t.wir))]
|
(poke-chat-hook-action %remove t.wir)
|
||||||
::
|
::
|
||||||
[%backlog @ @ @ *]
|
[%backlog @ @ @ *]
|
||||||
=/ pax `path`(oust [(dec (lent t.wir)) 1] `(list @ta)`t.wir)
|
=/ pax `path`(oust [(dec (lent t.wir)) 1] `(list @ta)`t.wir)
|
||||||
=. synced (~(del by synced) pax)
|
%. (poke-chat-hook-action %remove pax)
|
||||||
:_ state
|
|
||||||
:- [%give %fact [/synced]~ %chat-hook-update !>([%initial synced])]
|
|
||||||
%. ~
|
|
||||||
%- slog
|
%- slog
|
||||||
:* leaf+"chat-hook failed subscribe on {(spud pax)}"
|
:* leaf+"chat-hook failed subscribe on {(spud pax)}"
|
||||||
leaf+"stack trace:"
|
leaf+"stack trace:"
|
||||||
|
Loading…
Reference in New Issue
Block a user