π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Count album files by owner
AmanRajSinghMouryabb0357ab5741
diff --git a/mobile/apps/photos/lib/db/files_db.dart b/mobile/apps/photos/lib/db/files_db.dartindex 5ceb0355db..13be8f8f05 100644--- a/mobile/apps/photos/lib/db/files_db.dart+++ b/mobile/apps/photos/lib/db/files_db.dart@@ -1507,6 +1507,16 @@ class FilesDB with SqlDbBase {return row['COUNT(*)'] as int;}+ Future<int> collectionFileCountForOwner(int collectionID, int ownerID) async {+ final db = await instance.sqliteAsyncDB;+ final row = await db.get(+ 'SELECT COUNT(*) FROM $filesTable WHERE $columnCollectionID = ? '+ 'AND $columnOwnerID = ? AND $columnUploadedFileID IS NOT -1',+ [collectionID, ownerID],+ );+ return row['COUNT(*)'] as int;+ }+Future<int> archivedFilesCount(int visibility,int ownerID,