chat-hook: no-op on /backlog kick if not synced

This matches the behavior that's used for +kick on /mailbox, among other flows.
This commit is contained in:
Fang 2019-12-08 20:08:23 +01:00 committed by GitHub
parent baedc50567
commit 6722f789a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -402,6 +402,7 @@
::
?: ?=([%backlog @ *] wir)
=/ pax `path`(oust [(dec (lent t.wir)) 1] `(list @ta)`t.wir)
?. (~(has by synced) pax) [~ state]
=/ mailbox=(unit mailbox) (chat-scry pax)
=. pax ?~(mailbox wir [%mailbox pax])
:_ state