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 5d973eb231
commit 026bcb20b4

View File

@@ -191,12 +191,16 @@ extension LinkNewDeviceService.LinkDesktopProgress: CustomStringConvertible {
private extension QRCodeLoginError {
init(rustError: HumanQrGrantLoginError) {
self = switch rustError {
case .InvalidCheckCode:
case .InvalidCheckCode, .ConnectionInsecure:
.connectionInsecure
case .UnsupportedProtocol:
.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
case .Cancelled:
.cancelled
case .OtherDeviceAlreadySignedIn:
.deviceAlreadySignedIn
case .Unknown, .MissingSecretsBackup, .DeviceIdAlreadyInUse, .UnableToCreateDevice:
.unknown
}