From 3f56d21f3db68329e48b369b2edfad21fc5a48b8 Mon Sep 17 00:00:00 2001 From: Raymond Pasco Date: Tue, 25 Oct 2016 08:35:45 -0400 Subject: [PATCH] Revert "Revert changes introduced by ohaitch/talk-fix-presence at 8f7d7b9" This reverts commit 5e3b34de7672c5a4c1a6faad56c4b00403c460fd. --- app/talk.hoon | 42 ++++++++++++++---------------------------- 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/app/talk.hoon b/app/talk.hoon index 05ab1d9da..f3d9f6d17 100644 --- a/app/talk.hoon +++ b/app/talk.hoon @@ -1636,10 +1636,15 @@ ++ pa-report-group :: update presence |= vew/(set bone) %^ pa-report vew %group - :_ remotes - |- ^- atlas - ?~ locals ~ - [[p.n.locals q.q.n.locals] $(locals l.locals) $(locals r.locals)] + :- %- ~(run by locals) + |=({@ a/status} a) + %- ~(urn by remotes) :: XX preformance + |= {pan/partner atl/atlas} ^- atlas + ?. &(?=($& -.pan) =(our.hid p.p.pan)) atl + =+ (~(get by stories) q.p.pan) + ?~ - atl + %- ~(run by locals.u) + |=({@ a/status} a) :: ++ pa-report-cabal :: update config (pa-report cabalers %cabal shape mirrors) @@ -1753,30 +1758,11 @@ :: ++ pa-remind :: remote presence |= {tay/partner loc/atlas rem/(map partner atlas)} - =+ ^= buk - =+ mer=(turn (~(tap by rem) ~) |=({* a/atlas} a)) - |- ^- atlas - ?~ mer loc - =. loc $(mer t.mer) - =+ dur=`(list (pair ship status))`(~(tap by i.mer) ~) - |- ^- atlas - ?~ dur loc - =. loc $(dur t.dur) - =+ fuy=(~(get by loc) p.i.dur) - ?~ fuy (~(put by loc) p.i.dur q.i.dur) - ?: =(`presence`p.q.i.dur `presence`p.u.fuy) - loc - ?- p.u.fuy - $gone (~(del by loc) p.i.dur q.i.dur) - $talk loc - $hear (~(put by loc) p.i.dur q.i.dur) - == - =+ gub=(~(get by remotes) tay) - :: ~& [%pa-remind tay gub buk] - ?. |(?=($~ gub) !=(buk u.gub)) - +>.$ - =. remotes (~(put by remotes) tay buk) - (pa-report-group groupers) + =. rem (~(del by rem) %& our.hid man) :: superceded by local data + =/ buk (~(uni by remotes) rem) :: XX drop? + =. buk (~(put by buk) tay loc) + ?: =(buk remotes) +>.$ + (pa-report-group(remotes buk) groupers) :: ++ pa-start :: start stream |= riv/river