From c29b3d81671e99d0258993d51b5b65161ffb283f Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Thu, 10 Dec 2020 13:52:25 +1000 Subject: [PATCH] chat: address migration of missing owner in unmanaged groups --- pkg/arvo/app/chat-store.hoon | 4 ++-- pkg/arvo/ted/graph/create.hoon | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/arvo/app/chat-store.hoon b/pkg/arvo/app/chat-store.hoon index 3df3a29460..e221bbc8b1 100644 --- a/pkg/arvo/app/chat-store.hoon +++ b/pkg/arvo/app/chat-store.hoon @@ -397,8 +397,8 @@ =/ group=(unit group) (scry-group:grp group-rid) :- (add-graph app-rid mailbox) - ?~ group ~ - ?. &((lte ~(wyt in members.u.group) 1) hidden.u.group) ~ + ?~ group (archive-graph app-rid)^~ + ?. &(=(~ members.u.group) hidden.u.group) ~ ~& >>> "archiving {}" :~ (archive-graph app-rid) (remove-group group-rid) diff --git a/pkg/arvo/ted/graph/create.hoon b/pkg/arvo/ted/graph/create.hoon index 315527d0e7..25862a0a35 100644 --- a/pkg/arvo/ted/graph/create.hoon +++ b/pkg/arvo/ted/graph/create.hoon @@ -19,6 +19,8 @@ =/ =action:group-store [%add-group rid policy.associated %&] ;< ~ bind:m (poke-our %group-store %group-action !>(action)) + ;< =bowl:spider bind:m get-bowl:strandio + ;< ~ bind:m (poke-our %group-store %group-action !>([%add-members rid (sy our.bowl ~)])) ;< ~ bind:m (poke-our %group-push-hook %push-hook-action !>([%add rid])) (pure:m rid)