mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Treat NotFound error as expired in Sign in with QR/Link new device
This commit is contained in:
committed by
Stefan Ceriu
parent
4b4b060bff
commit
2dfda98913
@@ -259,13 +259,13 @@ private extension HumanQrLoginError {
|
|||||||
.qrCodeError(.declined)
|
.qrCodeError(.declined)
|
||||||
case .LinkingNotSupported:
|
case .LinkingNotSupported:
|
||||||
.qrCodeError(.linkingNotSupported)
|
.qrCodeError(.linkingNotSupported)
|
||||||
case .Expired:
|
case .Expired, .NotFound: // The most likely cause of a .NotFound is that the rendezvous session expired on the server side
|
||||||
.qrCodeError(.expired)
|
.qrCodeError(.expired)
|
||||||
case .SlidingSyncNotAvailable:
|
case .SlidingSyncNotAvailable:
|
||||||
.qrCodeError(.deviceNotSupported)
|
.qrCodeError(.deviceNotSupported)
|
||||||
case .OtherDeviceNotSignedIn:
|
case .OtherDeviceNotSignedIn:
|
||||||
.qrCodeError(.deviceNotSignedIn)
|
.qrCodeError(.deviceNotSignedIn)
|
||||||
case .Unknown, .NotFound, .OidcMetadataInvalid, .CheckCodeAlreadySent, .CheckCodeCannotBeSent:
|
case .Unknown, .OidcMetadataInvalid, .CheckCodeAlreadySent, .CheckCodeCannotBeSent:
|
||||||
.qrCodeError(.unknown)
|
.qrCodeError(.unknown)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -195,7 +195,9 @@ private extension QRCodeLoginError {
|
|||||||
.connectionInsecure
|
.connectionInsecure
|
||||||
case .UnsupportedProtocol:
|
case .UnsupportedProtocol:
|
||||||
.linkingNotSupported
|
.linkingNotSupported
|
||||||
case .Unknown, .NotFound, .MissingSecretsBackup, .DeviceIdAlreadyInUse, .UnableToCreateDevice:
|
case .NotFound: // The most likely cause of a .NotFound is that the rendezvous session expired on the server side
|
||||||
|
.expired
|
||||||
|
case .Unknown, .MissingSecretsBackup, .DeviceIdAlreadyInUse, .UnableToCreateDevice:
|
||||||
.unknown
|
.unknown
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user