diff --git a/Signal/src/util/AppUpdateNag.swift b/Signal/src/util/AppUpdateNag.swift index 63152d418..2d1e0de1b 100644 --- a/Signal/src/util/AppUpdateNag.swift +++ b/Signal/src/util/AppUpdateNag.swift @@ -205,7 +205,7 @@ class AppStoreVersionService: NSObject { let task = URLSession.ephemeral.dataTask(with: lookupURL) { (data, _, error) in guard let data = data else { - owsFail("\(self.logTag) in \(#function) data was unexpectedly nil") + Logger.warn("\(self.logTag) in \(#function) data was unexpectedly nil") reject(OWSErrorMakeUnableToProcessServerResponseError()) return } @@ -214,7 +214,7 @@ class AppStoreVersionService: NSObject { let decoder = JSONDecoder() let resultSet = try decoder.decode(AppStoreLookupResultSet.self, from: data) guard let appStoreRecord = resultSet.results.first else { - owsFail("\(self.logTag) in \(#function) record was unexpectedly nil") + Logger.warn("\(self.logTag) in \(#function) record was unexpectedly nil") reject(OWSErrorMakeUnableToProcessServerResponseError()) return } diff --git a/SignalServiceKit/src/Contacts/ContactsUpdater.m b/SignalServiceKit/src/Contacts/ContactsUpdater.m index 5e638e94e..82fa20fb5 100644 --- a/SignalServiceKit/src/Contacts/ContactsUpdater.m +++ b/SignalServiceKit/src/Contacts/ContactsUpdater.m @@ -81,10 +81,10 @@ NS_ASSUME_NONNULL_BEGIN success:(void (^)(NSSet *recipients))success failure:(void (^)(NSError *error))failure { - dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ - OWSLegacyContactDiscoveryOperation *operation = - [[OWSLegacyContactDiscoveryOperation alloc] initWithRecipientIdsToLookup:recipientIdsToLookup.allObjects]; + OWSLegacyContactDiscoveryOperation *operation = + [[OWSLegacyContactDiscoveryOperation alloc] initWithRecipientIdsToLookup:recipientIdsToLookup.allObjects]; + dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ NSArray *operationAndDependencies = [operation.dependencies arrayByAddingObject:operation]; [self.contactIntersectionQueue addOperations:operationAndDependencies waitUntilFinished:YES]; diff --git a/SignalShareExtension/utils/ShareAppExtensionContext.m b/SignalShareExtension/utils/ShareAppExtensionContext.m index 6e58f2042..7dd97e76b 100644 --- a/SignalShareExtension/utils/ShareAppExtensionContext.m +++ b/SignalShareExtension/utils/ShareAppExtensionContext.m @@ -145,7 +145,6 @@ NS_ASSUME_NONNULL_BEGIN - (CGFloat)statusBarHeight { - OWSFail(@"%@ in %s unexpected for share extension", self.logTag, __PRETTY_FUNCTION__); return 20; }