Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Hide rituals

Neeraj Gupta44c3ede1e616
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.dart
index 8a61b4b6db..18e8ebcc54 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
@@ -149,11 +149,17 @@ class _AllSearchSectionsState extends State<AllSearchSections> {
as List<GenericSearchResult>,
);
case SectionType.album:
+ if (isOfflineMode) {
+ return const SizedBox.shrink();
+ }
return AlbumsSection(
snapshot.data!.elementAt(index)
as List<AlbumSearchResult>,
);
case SectionType.ritual:
+ if (isOfflineMode) {
+ return const SizedBox.shrink();
+ }
return const _RitualsDiscoverySection();
case SectionType.wrapped:
return ValueListenableBuilder<WrappedEntryState>(