Clean up ahead of PR.

This commit is contained in:
Matthew Chen 2017-12-07 11:54:16 -05:00
parent 125aabb0a3
commit 55aa5eef6c
1 changed files with 1 additions and 3 deletions

View File

@ -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
}
}