Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Add additional check for fileType

Neeraj Guptafc5705dd7b44
diff --git a/mobile/lib/services/collections_service.dart b/mobile/lib/services/collections_service.dart
index ad12429207..e5c72d29a7 100644
--- a/mobile/lib/services/collections_service.dart
+++ b/mobile/lib/services/collections_service.dart
@@ -1390,7 +1390,11 @@ class CollectionsService {
for (final EnteFile file in othersFile) {
if (hashToUserFile.containsKey(file.hash ?? '')) {
final userFile = hashToUserFile[file.hash]!;
- filesToAdd.add(userFile);
+ if (userFile.fileType == file.fileType) {
+ filesToAdd.add(userFile);
+ } else {
+ filesToCopy.add(file);
+ }
} else {
filesToCopy.add(file);
}