mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-11 20:56:34 +03:00
contact-push-hook: add blank personal psuedo-resource for personal contact subscriptions
This commit is contained in:
parent
48d9e8c9b8
commit
da03594fbc
@ -71,9 +71,13 @@
|
|||||||
:: if the ship is in any group that I am pushing updates for, push
|
:: if the ship is in any group that I am pushing updates for, push
|
||||||
:: it out to that resource.
|
:: it out to that resource.
|
||||||
::
|
::
|
||||||
|
=/ rids
|
||||||
%+ skim ~(tap in scry-sharing)
|
%+ skim ~(tap in scry-sharing)
|
||||||
|= r=resource:res
|
|= r=resource:res
|
||||||
(is-member:grp s r)
|
(is-member:grp s r)
|
||||||
|
?. =(s our.bowl)
|
||||||
|
rids
|
||||||
|
(snoc rids [our.bowl %''])
|
||||||
::
|
::
|
||||||
++ scry-sharing
|
++ scry-sharing
|
||||||
.^ (set resource:res)
|
.^ (set resource:res)
|
||||||
@ -96,8 +100,12 @@
|
|||||||
++ rolo
|
++ rolo
|
||||||
^- rolodex:store
|
^- rolodex:store
|
||||||
=/ ugroup (scry-group:grp resource)
|
=/ ugroup (scry-group:grp resource)
|
||||||
?~ ugroup *rolodex:store
|
|
||||||
%- ~(gas by *rolodex:store)
|
%- ~(gas by *rolodex:store)
|
||||||
|
?~ ugroup
|
||||||
|
=/ c=(unit contact:store) (get-contact:con our.bowl)
|
||||||
|
?~ c
|
||||||
|
[our.bowl *contact:store]~
|
||||||
|
[our.bowl u.c]~
|
||||||
%+ murn ~(tap in (members:grp resource))
|
%+ murn ~(tap in (members:grp resource))
|
||||||
|= s=ship
|
|= s=ship
|
||||||
^- (unit [ship contact:store])
|
^- (unit [ship contact:store])
|
||||||
|
Loading…
Reference in New Issue
Block a user