From 2871a964ba1f5319fb1b92363a1ed86f5605480f Mon Sep 17 00:00:00 2001 From: Logan Allen Date: Tue, 15 Oct 2019 15:51:56 -0700 Subject: [PATCH] chat: changed a =: to a =. to fix message storage bug --- pkg/arvo/app/chat-store.hoon | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pkg/arvo/app/chat-store.hoon b/pkg/arvo/app/chat-store.hoon index 12d807b60..b80d794fd 100644 --- a/pkg/arvo/app/chat-store.hoon +++ b/pkg/arvo/app/chat-store.hoon @@ -192,12 +192,11 @@ =/ =hoon (ream expression.letter) letter(output (eval bol hoon)) =: length.config.u.mailbox +(length.config.u.mailbox) - number.envelope.act length.config.u.mailbox + number.envelope.act +(length.config.u.mailbox) envelopes.u.mailbox (snoc envelopes.u.mailbox envelope.act) - inbox (~(put by inbox) path.act u.mailbox) == - :_ this(inbox inbox) - (send-diff path.act act) + :- (send-diff path.act act) + this(inbox (~(put by inbox) path.act u.mailbox)) :: ++ handle-read |= act=chat-action @@ -206,11 +205,9 @@ =/ mailbox=(unit mailbox) (~(get by inbox) path.act) ?~ mailbox [~ this] - =: read.config.u.mailbox length.config.u.mailbox - inbox (~(put by inbox) path.act u.mailbox) - == - :_ this(inbox inbox) - (send-diff path.act act) + =. read.config.u.mailbox length.config.u.mailbox + :- (send-diff path.act act) + this(inbox (~(put by inbox) path.act u.mailbox)) :: ++ update-subscribers |= [pax=path act=chat-action]