Reuse videoAttachment method after compressing
This commit is contained in:
parent
1152c38d50
commit
ab01da1436
@ -1194,11 +1194,7 @@ public class SignalAttachment: NSObject {
|
||||
}
|
||||
dataSource.sourceFilename = mp4Filename
|
||||
|
||||
let attachment = SignalAttachment(dataSource: dataSource, dataUTI: UTType.mpeg4Movie.identifier)
|
||||
if dataSource.dataLength > OWSMediaUtils.kMaxFileSizeVideo {
|
||||
throw SignalAttachmentError.fileSizeTooLarge
|
||||
}
|
||||
return attachment
|
||||
return try videoAttachment(dataSource: dataSource, dataUTI: UTType.mpeg4Movie.identifier)
|
||||
}
|
||||
|
||||
public class func isVideoThatNeedsCompression(dataSource: DataSource, dataUTI: String) -> Bool {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user