mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Add mappings for additional errors in Link new device
Depends on a matrix-rust-sdk update
This commit is contained in:
committed by
Stefan Ceriu
parent
ca00a7a9d7
commit
4dcede603c
@@ -191,12 +191,16 @@ extension LinkNewDeviceService.LinkDesktopProgress: CustomStringConvertible {
|
|||||||
private extension QRCodeLoginError {
|
private extension QRCodeLoginError {
|
||||||
init(rustError: HumanQrGrantLoginError) {
|
init(rustError: HumanQrGrantLoginError) {
|
||||||
self = switch rustError {
|
self = switch rustError {
|
||||||
case .InvalidCheckCode:
|
case .InvalidCheckCode, .ConnectionInsecure:
|
||||||
.connectionInsecure
|
.connectionInsecure
|
||||||
case .UnsupportedProtocol:
|
case .UnsupportedProtocol:
|
||||||
.linkingNotSupported
|
.linkingNotSupported
|
||||||
case .NotFound: // The most likely cause of a .NotFound is that the rendezvous session expired on the server side
|
case .Expired, .NotFound: // The most likely cause of a .NotFound is that the rendezvous session expired on the server side
|
||||||
.expired
|
.expired
|
||||||
|
case .Cancelled:
|
||||||
|
.cancelled
|
||||||
|
case .OtherDeviceAlreadySignedIn:
|
||||||
|
.deviceAlreadySignedIn
|
||||||
case .Unknown, .MissingSecretsBackup, .DeviceIdAlreadyInUse, .UnableToCreateDevice:
|
case .Unknown, .MissingSecretsBackup, .DeviceIdAlreadyInUse, .UnableToCreateDevice:
|
||||||
.unknown
|
.unknown
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user