|
|
@ -613,7 +613,7 @@ public class ShareViewController: UINavigationController, ShareViewDelegate, SAE
|
|
|
|
let tempFilePath = OWSFileSystem.temporaryFilePath(withFileExtension:"png")
|
|
|
|
let tempFilePath = OWSFileSystem.temporaryFilePath(withFileExtension:"png")
|
|
|
|
do {
|
|
|
|
do {
|
|
|
|
let url = NSURL.fileURL(withPath:tempFilePath)
|
|
|
|
let url = NSURL.fileURL(withPath:tempFilePath)
|
|
|
|
try data.write(to: url, options: .atomicWrite)
|
|
|
|
try data.write(to: url)
|
|
|
|
fulfill((url, srcUtiType))
|
|
|
|
fulfill((url, srcUtiType))
|
|
|
|
} catch {
|
|
|
|
} catch {
|
|
|
|
reject(ShareViewControllerError.assertionError(description: "couldn't write UIImage: \(String(describing: error))"))
|
|
|
|
reject(ShareViewControllerError.assertionError(description: "couldn't write UIImage: \(String(describing: error))"))
|
|
|
|