mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-03 21:16:35 +00:00
Temporarily disable resource copy fix
This commit is contained in:
parent
27f0a39391
commit
f9be2dc845
@ -26,10 +26,10 @@ func applyMediaResourceChanges(from: Media, to: Media, postbox: Postbox, force:
|
||||
}
|
||||
}
|
||||
if let fromLargestRepresentation = largestImageRepresentation(fromImage.representations), let toLargestRepresentation = largestImageRepresentation(toImage.representations) {
|
||||
if fromLargestRepresentation.progressiveSizes != toLargestRepresentation.progressiveSizes {
|
||||
} else {
|
||||
/*if fromLargestRepresentation.progressiveSizes != toLargestRepresentation.progressiveSizes {
|
||||
} else {*/
|
||||
copyOrMoveResourceData(from: fromLargestRepresentation.resource, to: toLargestRepresentation.resource, mediaBox: postbox.mediaBox)
|
||||
}
|
||||
//}
|
||||
}
|
||||
} else if let fromFile = from as? TelegramMediaFile, let toFile = to as? TelegramMediaFile {
|
||||
if let fromPreview = smallestImageRepresentation(fromFile.previewRepresentations), let toPreview = smallestImageRepresentation(toFile.previewRepresentations) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user