mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 17:41:33 +03:00
chat-hook: only get new backlog on resubscribe
This commit is contained in:
parent
82c4895e32
commit
09d2c70884
@ -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]~
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user