Improve detection of completion for Link new device flow

The SDK emits a Done progress once complete, but our listener might have been deallocated before receiving the done.
This commit is contained in:
Hugh Nimmo-Smith 2026-04-28 15:19:03 +01:00
parent 997227b020
commit 723b7486bc
3 changed files with 5 additions and 4 deletions

View file

@ -145,10 +145,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)
}