mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
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:
+1
-4
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user