diff --git a/SignalMessaging/attachments/SharingThreadPickerViewController.m b/SignalMessaging/attachments/SharingThreadPickerViewController.m index 95dfeb38b..258b3d7f1 100644 --- a/SignalMessaging/attachments/SharingThreadPickerViewController.m +++ b/SignalMessaging/attachments/SharingThreadPickerViewController.m @@ -133,6 +133,7 @@ typedef void (^SendMessageBlock)(SendCompletionBlock completion); } NSData *data = self.attachment.data; NSString *_Nullable messageText = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; + DDLogVerbose(@"%@ messageTextForAttachment: %@", self.logTag, messageText); return messageText; } diff --git a/SignalShareExtension/ShareViewController.swift b/SignalShareExtension/ShareViewController.swift index 1cfa286ed..17962d9f0 100644 --- a/SignalShareExtension/ShareViewController.swift +++ b/SignalShareExtension/ShareViewController.swift @@ -507,8 +507,7 @@ public class ShareViewController: UINavigationController, ShareViewDelegate, SAE // // NOTE: SharingThreadPickerViewController will try to unpack them // and send them as normal text messages if possible. - let urlString = url.absoluteString - return DataSourceValue.dataSource(withOversizeText:urlString) + return DataSourcePath.dataSource(with: url) } else { guard let dataSource = DataSourcePath.dataSource(with: url) else { return nil @@ -579,6 +578,7 @@ public class ShareViewController: UINavigationController, ShareViewDelegate, SAE let fileUrl = URL(fileURLWithPath:tempFilePath) fulfill((fileUrl, srcUtiType)) } else if let string = provider as? String { + Logger.debug("\(self.logTag) string provider: \(string)") guard let data = string.data(using: String.Encoding.utf8) else { let writeError = ShareViewControllerError.assertionError(description: "Error writing item data: \(String(describing: error))") reject(writeError)