mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Improve detection of link device completion when linking a new device via QR (#5323)
* Improve detection of link device completion * Fix tests to match
This commit is contained in:
@@ -224,12 +224,10 @@ class QRCodeLoginScreenViewModel: QRCodeLoginScreenViewModelType, QRCodeLoginScr
|
||||
case .waitingForAuthorisation(let url):
|
||||
requestOIDCAuthorization(url: url)
|
||||
case .syncingSecrets:
|
||||
// break // Nothing to do.
|
||||
// .done is rarely received at the moment, so lets consider linking to be done here.
|
||||
break // Nothing to do.
|
||||
case .done:
|
||||
MXLog.info("Link with QR code completed.")
|
||||
actionsSubject.send(.linkedDevice)
|
||||
case .done:
|
||||
break // Not necessary right now with the workaround above in place.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user