chat-hook: only get new backlog on resubscribe

This commit is contained in:
Philip Monk 2019-11-30 22:08:06 -08:00
parent 82c4895e32
commit 09d2c70884
No known key found for this signature in database
GPG Key ID: B66E1F02604E44EC

View File

@ -391,9 +391,13 @@
:: no-op
[~ state]
~& %chat-hook-resubscribe
:: TODO: only ask for backlog from previous point
=/ =ship (~(got by synced) t.wir)
=/ chat-history (welp backlog+t.wir /0)
=/ mailbox=(unit mailbox) (chat-scry t.wir)
=/ chat-history
%+ welp backlog+t.wir
?~ mailbox
/0
/(scot %ud (lent envelopes.u.mailbox))
:_ state
[%pass chat-history %agent [ship %chat-hook] %watch chat-history]~
::