Skip to content

Commit

Permalink
activity: dont set channel defaults if group has setting
Browse files Browse the repository at this point in the history
  • Loading branch information
arthyn committed Jun 13, 2024
1 parent e81dd43 commit 4f29b82
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
?^ (~(get 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 4f29b82

Please sign in to comment.