|
|
@ -211,7 +211,8 @@ public class FullTextSearchFinder: NSObject {
|
|
|
|
var oversizeText: String?
|
|
|
|
var oversizeText: String?
|
|
|
|
dbConnection.read({ (transaction) in
|
|
|
|
dbConnection.read({ (transaction) in
|
|
|
|
guard let attachment = message.attachment(with: transaction) else {
|
|
|
|
guard let attachment = message.attachment(with: transaction) else {
|
|
|
|
owsFail("Could not load attachment for search indexing.")
|
|
|
|
// This can happen during the initial save of incoming messages.
|
|
|
|
|
|
|
|
Logger.warn("Could not load attachment for search indexing.")
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
guard let attachmentStream = attachment as? TSAttachmentStream else {
|
|
|
|
guard let attachmentStream = attachment as? TSAttachmentStream else {
|
|
|
|