Skip to content

Commit

Permalink
Fill notifications with message text
Browse files Browse the repository at this point in the history
  • Loading branch information
bonbud-macryg committed Jul 30, 2024
1 parent 5e3b411 commit c7ec802
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion pkg/arvo/neo/cod/std/src/imp/message.hoon
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
~
/@ message
^- kook:neo
|%
++ state [%pro %message]
++ poke (sy %sig ~)
++ kids *kids:neo
++ deps *deps:neo
++ form
^- form:neo
|_ [=bowl:neo =aeon:neo =stud:neo state-vase=vase]
+* state !<(message state-vase)
++ init
|= old=(unit pail:neo)
^- (quip card:neo pail:neo)
?~ old
~| "No message contents for {<here.bowl>}"
!!
=/ new-message
!<(message q:(need old))
:_ [%message !>(new-message)]
:~ :- #/[p/our.bowl]/home/notifications
[%poke [%notification !>([%.y now.bowl here.bowl contents.new-message])]]
==
++ poke
|= [=stud:neo vaz=vase]
^- (quip card:neo pail:neo)
[~ [%message !>(state)]]
--
--

0 comments on commit c7ec802

Please sign in to comment.