π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: fetch from cgroup and check if preHash is empty
Prateek Sunalb6ea502bc322
diff --git a/mobile/lib/services/entity_service.dart b/mobile/lib/services/entity_service.dartindex 410b4cb7a9..213fb07217 100644--- a/mobile/lib/services/entity_service.dart+++ b/mobile/lib/services/entity_service.dart@@ -225,13 +225,16 @@ class EntityService {String preHash = "";for (final id in personIds) {- final entity = await getEntity(EntityType.person, id);+ final entity = await getEntity(EntityType.cgroup, id);if (entity != null) {preHash = "$id:${entity.updatedAt}_";}}+ if (preHash.isEmpty) {+ return "";+ }final hash = md5.convert(utf8.encode(preHash)).toString().substring(0, 10);return hash;}