[mob][photos] Add additional check for fileType
This commit is contained in:
parent
01822b760d
commit
fc5705dd7b
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue