mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-21 15:38:59 +03:00
contact-push-hook: write out initial-watch to expose proper data
This commit is contained in:
parent
c8b83eb1dd
commit
d6eb1638d9
@ -88,13 +88,22 @@
|
||||
++ initial-watch
|
||||
|= [=path =resource:res]
|
||||
^- vase
|
||||
|^
|
||||
?> (is-allowed:con src.bowl)
|
||||
!> ^- update:store
|
||||
=/ contact=(unit contact:store) (get-contact:con our.bowl)
|
||||
:+ %add
|
||||
our.bowl
|
||||
?^ contact u.contact
|
||||
*contact:store
|
||||
[%initial rolo %.n]
|
||||
::
|
||||
++ rolo
|
||||
^- rolodex:store
|
||||
=/ ugroup (scry-group:grp resource)
|
||||
?~ ugroup *rolodex:store
|
||||
%- ~(gas by *rolodex:store)
|
||||
%+ murn ~(tap in (members:grp resource))
|
||||
|= s=ship
|
||||
^- (unit [ship contact:store])
|
||||
=/ c=(unit contact:store) (get-contact:con s)
|
||||
?~(c ~ `[s u.c])
|
||||
--
|
||||
::
|
||||
++ take-update
|
||||
|= =vase
|
||||
|
@ -104,7 +104,7 @@
|
||||
=/ our-contact (~(got by rolodex) our.bowl)
|
||||
=. rolodex (~(uni by rolodex) rolo)
|
||||
=. rolodex (~(put by rolodex) our.bowl our-contact)
|
||||
:_ state(rolodex rolodex, is-public is-public)
|
||||
:_ state(rolodex rolodex)
|
||||
(send-diff [%initial rolodex is-public] %.n)
|
||||
::
|
||||
++ handle-add
|
||||
|
Loading…
Reference in New Issue
Block a user