Ignore network failures for app update logic

This commit is contained in:
Max Radermacher 2023-11-17 16:29:26 -06:00 committed by GitHub
parent ae6589bc0a
commit e314bd1ca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,10 +44,10 @@ class AppUpdateNag: NSObject {
}.catch { error in
// Only failDebug if we're looking up the true org.whispersystems.signal app store record
// If someone is building Signal with their own bundleID, it's less important that this succeeds.
if bundleIdentifier.hasPrefix("org.whispersystems") {
owsFailDebug("Failed to find Signal app store record")
} else {
if error.isNetworkFailureOrTimeout || !bundleIdentifier.hasPrefix("org.whispersystems") {
Logger.warn("failed with error: \(error)")
} else {
owsFailDebug("Failed to find Signal app store record")
}
}
}