Skip to content

Commit

Permalink
fix: e2e webview close [WPB-6788] (#2762)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garzas committed Mar 4, 2024
1 parent f3b506a commit 332bb41
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -39,7 +39,6 @@ fun GetE2EICertificateUI(
val coroutineScope = rememberCoroutineScope()
val context = LocalContext.current

// FIXME issue happens when this UI is called from WireActivity: WebView is just canceled by itself
LaunchedEffect(Unit) {
viewModel.requestOAuthFlow.onEach {
OAuthUseCase(context, it.target, it.oAuthClaims, it.oAuthState).launch(
Expand All @@ -51,6 +50,7 @@ fun GetE2EICertificateUI(
LaunchedEffect(Unit) {
viewModel.enrollmentResultFlow.onEach { enrollmentResultHandler(it) }.launchIn(coroutineScope)
}

viewModel.getCertificate(isNewClient)
LaunchedEffect(Unit) {
viewModel.getCertificate(isNewClient)
}
}

0 comments on commit 332bb41

Please sign in to comment.