Fixes #3147 - Remove the sliding sync proxy wait list

This commit is contained in:
Stefan Ceriu
2024-08-12 12:05:43 +03:00
committed by Stefan Ceriu
parent 6759a66533
commit a0eafe26c3
21 changed files with 1 additions and 542 deletions
@@ -114,10 +114,6 @@ class AuthenticationService: AuthenticationServiceProtocol {
// FIXME: How about we make a proper type in the FFI? 😅
guard let error = error as? ClientError else { return .failure(.failedLoggingIn) }
if error.isElementWaitlist {
return .failure(.isOnWaitlist)
}
switch error.code {
case .forbidden:
return .failure(.invalidCredentials)
@@ -26,7 +26,6 @@ enum AuthenticationServiceError: Error {
case slidingSyncNotAvailable
case accountDeactivated
case failedLoggingIn
case isOnWaitlist
case sessionTokenRefreshNotSupported
}
@@ -25,12 +25,4 @@ extension ClientError {
return first
}
/// Whether or not the error is related to the sliding sync proxy being full.
///
/// This is a temporary error whilst we scale the backend infrastructure.
var isElementWaitlist: Bool {
guard case let .Generic(message) = self else { return false }
return message.contains("IO_ELEMENT_X_WAIT_LIST")
}
}