diff --git a/lib/backend/modules/account.dart b/lib/backend/modules/account.dart index 1a983be..e78828a 100644 --- a/lib/backend/modules/account.dart +++ b/lib/backend/modules/account.dart @@ -375,9 +375,7 @@ class AccountModule { final accountId = await TokenStorage.getActiveAccountId(); if (accountId != null) { final saved = await AppDatabase.getPrivacyConfig(accountId); - if (saved != null) { - return PrivacyConfig.fromJson(saved); - } + if (saved != null) return PrivacyConfig.fromJson(saved); } return PrivacyConfig.empty(); } @@ -1021,6 +1019,13 @@ class AccountModule { profile.id, config.cast(), ); + final userConfig = config['user']; + if (userConfig is Map) { + await AppDatabase.savePrivacyConfig( + profile.id, + jsonEncode(userConfig), + ); + } } try { await FoldersModule.syncFromServer(_api, profile.id); diff --git a/lib/frontend/screens/chats/chat_list_screen.dart b/lib/frontend/screens/chats/chat_list_screen.dart index 13cf4f7..db596fd 100644 --- a/lib/frontend/screens/chats/chat_list_screen.dart +++ b/lib/frontend/screens/chats/chat_list_screen.dart @@ -933,7 +933,7 @@ class _ChatListScreenState extends State ), ), Padding( - padding: const EdgeInsets.fromLTRB(20, 3, 20, 4), + padding: const EdgeInsets.fromLTRB(20, 3, 20, 6), child: Container( height: 44, decoration: BoxDecoration( @@ -1078,6 +1078,7 @@ class _ChatListScreenState extends State parent: const AlwaysScrollableScrollPhysics(), ), slivers: [ + const SliverToBoxAdapter(child: SizedBox(height: 6)), if (chats.isEmpty && !_isInitialLoading) SliverFillRemaining( child: Center(