Skip to content

Commit

Permalink
Merge pull request #3623 from tloncorp/hm/better-volume-migration
Browse files Browse the repository at this point in the history
activity: dont set channel defaults if group has setting during migration
  • Loading branch information
arthyn authored Jun 14, 2024
2 parents 2ca2d84 + 4dd9472 commit fbc0cba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion desk/app/activity.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@
(welp writs replies)
++ set-volumes
|= =channels:c
=+ .^(=volume:v %gx (scry-path %groups /volume/all/noun))
:: set all existing channels to old default since new default is different
=^ checkers cor
=/ checkers=(map flag:g $-([ship nest:g] ?)) ~
Expand All @@ -247,11 +248,12 @@
.^($-([ship nest] ?) %gx path)
[test (~(put by checkers) group test)]
=. cor
:: don't set channel default if group above it has setting
?: (~(has by area.volume) group) cor
%+ adjust [%channel nest group]
?: (can-read our.bowl nest) `(my [%post & |] ~)
`mute:a
$(entries t.entries)
=+ .^(=volume:v %gx (scry-path %groups /volume/all/noun))
:: set any overrides from previous volume settings
=. cor (adjust [%base ~] `(~(got by old-volumes:a) base.volume))
=. cor
Expand Down

0 comments on commit fbc0cba

Please sign in to comment.