Add mappings for additional errors in Link new device

Depends on a matrix-rust-sdk update
This commit is contained in:
Hugh Nimmo-Smith
2026-02-09 11:27:46 +00:00
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
} }