Merge pull request #2518 from urbit/m/chat-hook-watch-nack

chat-hook: clear all subscriptions on watch-nack
This commit is contained in:
Fang 2020-03-19 15:35:26 +01:00 committed by GitHub
commit bee7f67d45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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:"