Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Fix incremental fromTime guard

Prateek Sunal96305411cf7f
diff --git a/mobile/apps/photos/lib/services/sync/import/local_assets.dart b/mobile/apps/photos/lib/services/sync/import/local_assets.dart
index 49bf262438..4097014666 100644
--- a/mobile/apps/photos/lib/services/sync/import/local_assets.dart
+++ b/mobile/apps/photos/lib/services/sync/import/local_assets.dart
@@ -254,7 +254,7 @@ Future<Tuple2<Set<String>, List<EnteFile>>> _getLocalIDsAndFilesFromAssets(
'modifiedDateTime',
);
final bool assetCreatedOrUpdatedAfterGivenTime =
- max(createMs, modifiedMs) >= (fromTime / ~1000);
+ max(createMs, modifiedMs) >= (fromTime ~/ 1000);
if (!alreadySeenLocalIDs.contains(entity.id) &&
assetCreatedOrUpdatedAfterGivenTime) {
final file = await EnteFile.fromAsset(pathEntity.name, entity);