Clean up ahead of PR.
This commit is contained in:
parent
125aabb0a3
commit
55aa5eef6c
|
@ -466,7 +466,7 @@ public class SignalAttachment: NSObject {
|
|||
return nil
|
||||
}
|
||||
let dataSource = DataSourceValue.dataSource(with:data, utiType: dataUTI)
|
||||
// Pasted images should not be resized, if possible.
|
||||
// Pasted images _SHOULD _NOT_ be resized, if possible.
|
||||
return imageAttachment(dataSource : dataSource, dataUTI : dataUTI, attachmentQuality:.original)
|
||||
}
|
||||
}
|
||||
|
@ -664,7 +664,6 @@ public class SignalAttachment: NSObject {
|
|||
|
||||
guard let dataSource = DataSourceValue.dataSource(with:jpgImageData, fileExtension:"jpg") else {
|
||||
attachment.error = .couldNotConvertToJpeg
|
||||
Logger.verbose("\(TAG) Could not convert \(attachment.mimeType) to image/jpeg")
|
||||
return attachment
|
||||
}
|
||||
|
||||
|
@ -695,7 +694,6 @@ public class SignalAttachment: NSObject {
|
|||
imageUploadQuality = .low
|
||||
case .low:
|
||||
attachment.error = .fileSizeTooLarge
|
||||
Logger.verbose("\(TAG) Image too large to convert \(attachment.mimeType) to image/jpeg")
|
||||
return attachment
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue