Merge pull request #6681 from hughns/hughns/link-new-device-done

Improve detection of completion for Link new device flow
This commit is contained in:
Benoit Marty 2026-04-29 22:32:22 +02:00 committed by GitHub
commit 8b8eedb419
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 83 additions and 8 deletions

View file

@ -151,10 +151,7 @@ class LinkNewDeviceFlowNode(
LinkMobileStep.Starting -> {
// This step is not received at the moment, so do nothing
}
LinkMobileStep.SyncingSecrets -> {
// LinkMobileStep.Done is not received at the moment, so consider that the flow is done here
callback.onDone()
}
LinkMobileStep.SyncingSecrets -> Unit
is LinkMobileStep.WaitingForAuth -> {
navigateToBrowser(linkMobileStep.verificationUri)
}