mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Handle waiting list error. (#1165)
This commit is contained in:
@@ -46,4 +46,12 @@ extension AuthenticationError {
|
||||
|
||||
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