From fc1ce02ae52fe7534158b8e3c24d7f6caefcbef3 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Fri, 3 Aug 2018 14:10:46 -0600 Subject: [PATCH] CR: Now that we have transaction semantics, this shouldn't happen. // FREEBIE --- SignalServiceKit/src/Storage/FullTextSearchFinder.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SignalServiceKit/src/Storage/FullTextSearchFinder.swift b/SignalServiceKit/src/Storage/FullTextSearchFinder.swift index f8636bd88..38461d101 100644 --- a/SignalServiceKit/src/Storage/FullTextSearchFinder.swift +++ b/SignalServiceKit/src/Storage/FullTextSearchFinder.swift @@ -209,8 +209,7 @@ public class FullTextSearchFinder: NSObject { } guard let attachment = message.attachment(with: transaction) else { - // This can happen during the initial save of incoming messages. - Logger.warn("Could not load attachment for search indexing.") + owsFail("\(self.logTag) in \(#function) attachment was unexpectedly nil") return nil }