Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): group setting change doesn't propagate across the app (#9066)

Alexf1083a4c73fc
diff --git a/mobile/lib/modules/settings/ui/asset_list_settings/asset_list_group_settings.dart b/mobile/lib/modules/settings/ui/asset_list_settings/asset_list_group_settings.dart
index 8595973f24..315309c2f9 100644
--- a/mobile/lib/modules/settings/ui/asset_list_settings/asset_list_group_settings.dart
+++ b/mobile/lib/modules/settings/ui/asset_list_settings/asset_list_group_settings.dart
@@ -21,6 +21,10 @@ class GroupSettings extends HookConsumerWidget {
void changeGroupValue(GroupAssetsBy? value) {
if (value != null) {
groupByIndex.value = value.index;
+ ref.watch(appSettingsServiceProvider).setSetting(
+ AppSettingsEnum.groupAssetsBy,
+ value.index,
+ );
ref.invalidate(appSettingsServiceProvider);
}
}