diff --git a/pkg/arvo/app/chat-view.hoon b/pkg/arvo/app/chat-view.hoon index 7fdb6aa0b6..ec0d7d3a52 100644 --- a/pkg/arvo/app/chat-view.hoon +++ b/pkg/arvo/app/chat-view.hoon @@ -109,6 +109,8 @@ [[%give %fact ~ %json !>(*json)]~ this] (on-watch:def path) :: + ++ message-limit 25 + :: ++ truncated-inbox-scry ^- inbox =/ =inbox .^(inbox %gx /=chat-store/(scot %da now.bol)/all/noun) @@ -121,9 +123,9 @@ |= envelopes=(list envelope) ^- (list envelope) =/ length (lent envelopes) - ?: (lth length 100) + ?: (lth length message-limit) envelopes - (swag [(sub length 100) 100] envelopes) + (slag (sub length message-limit) envelopes) -- :: ++ on-agent