mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Don't report feedback for HTTP errors.
// FREEBIE
This commit is contained in:
parent
11db859e6b
commit
3507367a90
|
@ -416,8 +416,6 @@ class CDSFeedbackOperation: OWSOperation {
|
|||
enum FeedbackResult: String {
|
||||
case ok
|
||||
case mismatch
|
||||
case serverError = "server-error"
|
||||
case clientError = "client-error"
|
||||
case attestationError = "attestation-error"
|
||||
case unexpectedError = "unexpected-error"
|
||||
}
|
||||
|
@ -464,10 +462,9 @@ class CDSFeedbackOperation: OWSOperation {
|
|||
|
||||
if let error = cdsOperation.failingError {
|
||||
switch error {
|
||||
case ContactDiscoveryError.serverError:
|
||||
self.makeRequest(result: .serverError)
|
||||
case ContactDiscoveryError.clientError:
|
||||
self.makeRequest(result: .clientError)
|
||||
case ContactDiscoveryError.serverError, ContactDiscoveryError.clientError:
|
||||
// Server already has this information, no need to report.
|
||||
self.reportSuccess()
|
||||
case ContactDiscoveryError.attestationError:
|
||||
self.makeRequest(result: .attestationError)
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue