diff --git a/ElementX/Sources/Services/Authentication/AuthenticationService.swift b/ElementX/Sources/Services/Authentication/AuthenticationService.swift index ffcc2313f..796e5b4c3 100644 --- a/ElementX/Sources/Services/Authentication/AuthenticationService.swift +++ b/ElementX/Sources/Services/Authentication/AuthenticationService.swift @@ -259,13 +259,13 @@ private extension HumanQrLoginError { .qrCodeError(.declined) case .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) case .SlidingSyncNotAvailable: .qrCodeError(.deviceNotSupported) case .OtherDeviceNotSignedIn: .qrCodeError(.deviceNotSignedIn) - case .Unknown, .NotFound, .OidcMetadataInvalid, .CheckCodeAlreadySent, .CheckCodeCannotBeSent: + case .Unknown, .OidcMetadataInvalid, .CheckCodeAlreadySent, .CheckCodeCannotBeSent: .qrCodeError(.unknown) } } diff --git a/ElementX/Sources/Services/Authentication/LinkNewDeviceService.swift b/ElementX/Sources/Services/Authentication/LinkNewDeviceService.swift index cdd471bb8..ee8d58b0f 100644 --- a/ElementX/Sources/Services/Authentication/LinkNewDeviceService.swift +++ b/ElementX/Sources/Services/Authentication/LinkNewDeviceService.swift @@ -195,7 +195,9 @@ private extension QRCodeLoginError { .connectionInsecure case .UnsupportedProtocol: .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 } }