π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Remove faceArea and faceVisibility from local DB
laurenspriema0fa90cb50bc
diff --git a/mobile/lib/face/db.dart b/mobile/lib/face/db.dartindex 3b3bf3b2c6..95aced5a5a 100644--- a/mobile/lib/face/db.dart+++ b/mobile/lib/face/db.dart@@ -311,8 +311,6 @@ class FaceMLDataDB {faceBlur,imageHeight,imageWidth,- faceArea,- faceVisibilityScore,mlVersionColumn,],where: '$fileIDColumn = ?',diff --git a/mobile/lib/face/db_fields.dart b/mobile/lib/face/db_fields.dartindex 3890a261e6..206806e0ca 100644--- a/mobile/lib/face/db_fields.dart+++ b/mobile/lib/face/db_fields.dart@@ -8,8 +8,6 @@ const faceDetectionColumn = 'detection';const faceEmbeddingBlob = 'eBlob';const faceScore = 'score';const faceBlur = 'blur';-const faceArea = 'area';-const faceVisibilityScore = 'visibility';const imageWidth = 'width';const imageHeight = 'height';const faceClusterId = 'cluster_id';@@ -24,8 +22,6 @@ const createFacesTable = '''CREATE TABLE IF NOT EXISTS $facesTable ($faceBlur REAL NOT NULL DEFAULT $kLapacianDefault,$imageHeight INTEGER NOT NULL DEFAULT 0,$imageWidth INTEGER NOT NULL DEFAULT 0,- $faceArea INTEGER NOT NULL DEFAULT 0,- $faceVisibilityScore INTEGER NOT NULL DEFAULT -1,$mlVersionColumn INTEGER NOT NULL DEFAULT -1,PRIMARY KEY($fileIDColumn, $faceIDColumn));diff --git a/mobile/lib/face/db_model_mappers.dart b/mobile/lib/face/db_model_mappers.dartindex 4e33a0bfdb..683281e93d 100644--- a/mobile/lib/face/db_model_mappers.dart+++ b/mobile/lib/face/db_model_mappers.dart@@ -35,8 +35,6 @@ Map<String, dynamic> mapRemoteToFaceDB(Face face) {faceScore: face.score,faceBlur: face.blur,mlVersionColumn: faceMlVersion,- faceArea: face.area(),- faceVisibilityScore: face.visibility,imageWidth: face.fileInfo?.imageWidth ?? 0,imageHeight: face.fileInfo?.imageHeight ?? 0,};