Skip to content

Commit

Permalink
chat: better club invite invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
arthyn committed Jun 19, 2024
1 parent df0d56c commit 3a43161
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions desk/app/chat.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,6 @@
=. cu-core (cu-init %done create)
=. cu-core (cu-diff 0v0 [%init team hive met]:crew.club)
=. cor (give-unread club/id cu-unread)
=. cor (pass-activity [%club id] [%invite ~] *story:d |)
=/ =delta:writs:c
%+ make-notice our.bowl
%+ rap 3
Expand Down Expand Up @@ -1273,6 +1272,7 @@
cu-core
::
%init
=. cor (pass-activity [%club id] [%invite ~] *story:d |)
:: ignore if already initialized
?: ?| !=(~ hive.crew.club)
!=(~ team.crew.club)
Expand Down Expand Up @@ -1367,7 +1367,6 @@
=. hive.crew.club (~(del in hive.crew.club) ship)
?. ok.delta
(cu-post-notice ship ' declined the invite')
=. cor (pass-activity [%club id] [%invite ~] *story:d |)
=. cor (give-unread club/id cu-unread)
=. team.crew.club (~(put in team.crew.club) ship)
=? last-read.remark.club =(ship our.bowl) now.bowl
Expand Down

0 comments on commit 3a43161

Please sign in to comment.