π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Avoid adding empty albums in _getAlbumsWithFiles()
ashilkn129e9f8f49f9
diff --git a/mobile/lib/services/album_home_widget_service.dart b/mobile/lib/services/album_home_widget_service.dartindex 2f23ff1d52..056b6f19b1 100644--- a/mobile/lib/services/album_home_widget_service.dart+++ b/mobile/lib/services/album_home_widget_service.dart@@ -371,8 +371,10 @@ class AlbumHomeWidgetService {if (collection != null) {final files =await FilesDB.instance.getAllFilesCollection(collection.id);- albumsWithFiles[collection.id] =- (collection.decryptedName ?? "Album", files);+ if (files.isNotEmpty) {+ albumsWithFiles[collection.id] =+ (collection.decryptedName ?? "Album", files);+ }}}