Skip to content

Commit

Permalink
fix: e2e webview close [WPB-6788] (#2764)
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Ε»erko <[email protected]>
  • Loading branch information
AndroidBob and Garzas authored Mar 7, 2024
1 parent 8b0809e commit c816a0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
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)
}
}
2 changes: 1 addition & 1 deletion kalium
Submodule kalium updated 34 files
+2 βˆ’0 logic/src/commonJvmAndroid/kotlin/com/wire/kalium/logic/CoreCryptoExceptionMapper.kt
+8 βˆ’6 logic/src/commonJvmAndroid/kotlin/com/wire/kalium/logic/feature/call/CallManagerImpl.kt
+2 βˆ’0 logic/src/commonMain/kotlin/com/wire/kalium/logic/CoreFailure.kt
+7 βˆ’0 logic/src/commonMain/kotlin/com/wire/kalium/logic/configuration/UserConfigRepository.kt
+1 βˆ’1 logic/src/commonMain/kotlin/com/wire/kalium/logic/data/client/ClientModel.kt
+22 βˆ’22 logic/src/commonMain/kotlin/com/wire/kalium/logic/data/e2ei/CertificateRevocationListRepository.kt
+0 βˆ’12 logic/src/commonMain/kotlin/com/wire/kalium/logic/data/e2ei/E2EIRepository.kt
+4 βˆ’1 logic/src/commonMain/kotlin/com/wire/kalium/logic/data/team/TeamRepository.kt
+16 βˆ’1 logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/UserSessionScope.kt
+60 βˆ’0 .../commonMain/kotlin/com/wire/kalium/logic/feature/e2ei/usecase/CheckRevocationListForCurrentClientUseCase.kt
+4 βˆ’0 logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/e2ei/usecase/CheckRevocationListUseCase.kt
+41 βˆ’21 logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/user/UpdateSelfUserSupportedProtocolsUseCase.kt
+2 βˆ’0 .../src/commonMain/kotlin/com/wire/kalium/logic/sync/receiver/conversation/message/MLSMessageFailureHandler.kt
+27 βˆ’0 logic/src/commonTest/kotlin/com/wire/kalium/logic/data/client/ClientTest.kt
+7 βˆ’5 logic/src/commonTest/kotlin/com/wire/kalium/logic/data/team/TeamRepositoryTest.kt
+1 βˆ’1 logic/src/commonTest/kotlin/com/wire/kalium/logic/data/user/UserRepositoryTest.kt
+208 βˆ’0 ...monTest/kotlin/com/wire/kalium/logic/feature/e2ei/usecase/CheckRevocationListForCurrentClientUseCaseTest.kt
+152 βˆ’104 logic/src/commonTest/kotlin/com/wire/kalium/logic/feature/user/UpdateSupportedProtocolsUseCaseTest.kt
+5 βˆ’0 monkeys/schema.json
+2 βˆ’1 monkeys/src/main/kotlin/com/wire/kalium/monkeys/MonkeyApplication.kt
+1 βˆ’0 monkeys/src/main/kotlin/com/wire/kalium/monkeys/model/TestData.kt
+11 βˆ’5 monkeys/src/main/kotlin/com/wire/kalium/monkeys/model/TestDataImporter.kt
+13 βˆ’1 monkeys/src/main/kotlin/com/wire/kalium/monkeys/model/UserData.kt
+16 βˆ’5 monkeys/src/main/kotlin/com/wire/kalium/monkeys/pool/MonkeyPool.kt
+12 βˆ’4 network/src/commonMain/kotlin/com/wire/kalium/network/api/base/authenticated/TeamsApi.kt
+2 βˆ’1 network/src/commonMain/kotlin/com/wire/kalium/network/api/base/unbound/acme/ACMEApi.kt
+8 βˆ’3 network/src/commonMain/kotlin/com/wire/kalium/network/api/v0/authenticated/TeamsApiV0.kt
+9 βˆ’10 network/src/commonMain/kotlin/com/wire/kalium/network/api/v4/authenticated/ConversationApiV4.kt
+11 βˆ’5 network/src/commonMain/kotlin/com/wire/kalium/network/utils/NetworkUtils.kt
+19 βˆ’0 network/src/commonTest/kotlin/com/wire/kalium/api/v0/teams/TeamsApiV0Test.kt
+1 βˆ’1 persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/conversation/ConversationDAO.kt
+3 βˆ’3 persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/conversation/ConversationDAOImpl.kt
+11 βˆ’0 persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/unread/UserConfigDAO.kt
+16 βˆ’0 persistence/src/commonTest/kotlin/com/wire/kalium/persistence/dao/ConversationDAOTest.kt

0 comments on commit c816a0b

Please sign in to comment.