mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:02:10 +00:00
Fixes #3147 - Remove the sliding sync proxy wait list
This commit is contained in:
committed by
Stefan Ceriu
parent
6759a66533
commit
a0eafe26c3
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user