Skip to content

Commit

Permalink
chat: fix dm initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
arthyn committed Jun 19, 2024
1 parent 3a43161 commit 3046709
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions desk/app/chat.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -1587,12 +1587,17 @@
::
++ di-abed-soft
|= s=@p
=/ d
%+ ~(gut by dms) s
=| =remark:c
=. watching.remark &
[*pact:c remark ?:(=(src our):bowl %inviting %invited) |]
di-core(ship s, dm d)
=/ dm (~(get by dms) s)
?^ dm di-core(ship s, dm u.dm)
=| =remark:c
=/ new=dm:c
:* *pact:c
remark(watching &)
?:(=(src our):bowl %inviting %invited)
|
==
=. di-core di-core(ship s, dm new)
(di-activity [%invite ~] *story:d &)
::
++ di-area `path`/dm/(scot %p ship)
++ di-area-writs `path`/dm/(scot %p ship)/writs
Expand Down Expand Up @@ -1640,8 +1645,6 @@
=. pact.dm (reduce:di-pact now.bowl diff)
=? cor &(=(net.dm %invited) !=(ship our.bowl))
(give-invites ship)
=? di-core &(=(net.dm %invited) !=(ship our.bowl))
(di-activity [%invite ~] *story:d &)
?- -.q.diff
?(%del %add-react %del-react) (di-give-writs-diff diff)
::
Expand Down Expand Up @@ -1724,7 +1727,6 @@
=? cor =(our src):bowl
(emit (proxy-rsvp:di-pass ok))
?> |(=(src.bowl ship) =(our src):bowl)
=. cor (pass-activity [%ship ship] [%invite ~] *story:d |)
:: TODO hook into archive
?. ok
%- (note:wood %odd leaf/"gone {<ship>}" ~)
Expand Down

0 comments on commit 3046709

Please sign in to comment.