From 0fb8f98a44364392a71487bb4f6541910e0f68b8 Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Fri, 4 Dec 2020 13:05:38 +1000 Subject: [PATCH] chat-cli: print messages only if chat is viewed --- pkg/arvo/app/chat-cli.hoon | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/arvo/app/chat-cli.hoon b/pkg/arvo/app/chat-cli.hoon index 196a6d6d4..c0abcb279 100644 --- a/pkg/arvo/app/chat-cli.hoon +++ b/pkg/arvo/app/chat-cli.hoon @@ -369,6 +369,8 @@ %remove-graph (~(notice-remove se i.sez) +.q.upd) :: %add-nodes + ?. (~(has in viewing.session.i.sez) resource.q.upd) + [~ session.i.sez] %+ ~(read-posts se i.sez) resource.q.upd (sort ~(tap by nodes.q.upd) ior)