From 9e3c0488553978567b6964b6d4d5d38d92d2564f Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Sat, 13 Feb 2021 15:14:36 +1000 Subject: [PATCH] contact-store: address L review --- pkg/arvo/app/contact-store.hoon | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkg/arvo/app/contact-store.hoon b/pkg/arvo/app/contact-store.hoon index 738fe698d..a7c60110d 100644 --- a/pkg/arvo/app/contact-store.hoon +++ b/pkg/arvo/app/contact-store.hoon @@ -104,17 +104,18 @@ |= [rolo=rolodex:store is-public=?] ^- (quip card _state) =/ our-contact (~(got by rolodex) our.bowl) - :: =/ diff-rolo=rolodex:store %- ~(gas by *rolodex:store) %+ skim ~(tap in rolo) |= [=ship =contact:store] ?~ local-con=(~(get by rolodex) ship) %.y (gth last-updated.contact last-updated.u.local-con) - =. rolodex (~(uni by rolodex) diff-rolo) - =. rolodex (~(put by rolodex) our.bowl our-contact) - :_ state(rolodex rolodex) - (send-diff [%initial rolodex is-public] %.n) + =/ new-rolo=rolodex:store + (~(uni by rolodex) diff-rolo) + =. new-rolo (~(put by new-rolo) our.bowl our-contact) + ?: =(new-rolo rolodex) `state + :_ state(rolodex new-rolo) + (send-diff [%initial new-rolo is-public] %.n) :: ++ handle-add |= [=ship =contact:store]