diff --git a/pkg/arvo/app/lens.hoon b/pkg/arvo/app/lens.hoon index 64fb2737ca..2a790fc129 100644 --- a/pkg/arvo/app/lens.hoon +++ b/pkg/arvo/app/lens.hoon @@ -25,7 +25,6 @@ ^- (list @tas) :~ %group-store %metadata-store - %metadata-hook %contact-store %contact-hook %invite-store diff --git a/pkg/arvo/app/metadata-store.hoon b/pkg/arvo/app/metadata-store.hoon index a079c60e80..8cdd26b646 100644 --- a/pkg/arvo/app/metadata-store.hoon +++ b/pkg/arvo/app/metadata-store.hoon @@ -319,7 +319,23 @@ |= arc=* ^- (quip card _state) |^ - (on-load !>([%7 (remake-metadata ;;(tree-metadata +.arc))])) + =^ cards state + (on-load !>([%7 (remake-metadata ;;(tree-metadata +.arc))])) + :_ state + %+ weld cards + %+ turn ~(tap in ~(key by group-indices)) + |= rid=resource + %- poke-our + ?: =(entity.rid our.bowl) + :- %metadata-push-hook + push-hook-action+!>([%add rid]) + :- %metadata-pull-hook + pull-hook-action+!>([%add [entity .]:rid]) + :: + ++ poke-our + |= [app=term =cage] + ^- card + [%pass / %agent [our.bowl app] %poke cage] :: +$ tree-metadata $: associations=(tree [md-resource [resource metadata]])