π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix empty state check bypassing device albums in offline mode
Neeraj Gupta94e0abdef536
diff --git a/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart b/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dartindex 21a7b19493..23c0a918a0 100644--- a/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart+++ b/mobile/apps/photos/lib/ui/viewer/search_tab/search_tab.dart@@ -117,7 +117,10 @@ class _AllSearchSectionsState extends State<AllSearchSections> {.allSectionsExamplesFuture,builder: (context, snapshot) {if (snapshot.hasData && snapshot.data!.isNotEmpty) {- if (snapshot.data!.every((element) => element.isEmpty)) {+ // In offline mode, skip the empty state check since DeviceAlbumsSection+ // fetches its own data and may have albums to show+ if (!isOfflineMode &&+ snapshot.data!.every((element) => element.isEmpty)) {return const Padding(padding: EdgeInsets.only(bottom: 72),child: SearchTabEmptyState(),