diff --git a/app/src/main/kotlin/com/wire/android/ui/e2eiEnrollment/E2EIEnrollmentScreen.kt b/app/src/main/kotlin/com/wire/android/ui/e2eiEnrollment/E2EIEnrollmentScreen.kt index 55f536fd97d..7c8c1a9073b 100644 --- a/app/src/main/kotlin/com/wire/android/ui/e2eiEnrollment/E2EIEnrollmentScreen.kt +++ b/app/src/main/kotlin/com/wire/android/ui/e2eiEnrollment/E2EIEnrollmentScreen.kt @@ -57,7 +57,7 @@ import com.wire.android.ui.common.topappbar.WireCenterAlignedTopAppBar import com.wire.android.ui.common.visbility.rememberVisibilityState import com.wire.android.ui.destinations.E2eiCertificateDetailsScreenDestination import com.wire.android.ui.destinations.InitialSyncScreenDestination -import com.wire.android.ui.home.E2EIErrorWithDismissDialog +import com.wire.android.ui.home.E2EIErrorNoSnoozeDialog import com.wire.android.ui.home.E2EISuccessDialog import com.wire.android.ui.markdown.MarkdownConstants import com.wire.android.ui.theme.WireTheme @@ -193,10 +193,12 @@ private fun E2EIEnrollmentScreenContent( } if (state.isCertificateEnrollError) { - E2EIErrorWithDismissDialog( + E2EIErrorNoSnoozeDialog( isE2EILoading = state.isLoading, - updateCertificate = enrollE2EICertificate, - onDismiss = dismissErrorDialog + updateCertificate = { + dismissErrorDialog() + enrollE2EICertificate() + } ) } diff --git a/app/src/main/kotlin/com/wire/android/ui/home/E2EIDialogs.kt b/app/src/main/kotlin/com/wire/android/ui/home/E2EIDialogs.kt index eedbc2a1bad..a140afe9350 100644 --- a/app/src/main/kotlin/com/wire/android/ui/home/E2EIDialogs.kt +++ b/app/src/main/kotlin/com/wire/android/ui/home/E2EIDialogs.kt @@ -247,7 +247,7 @@ private fun E2EIErrorWithSnoozeDialog( } @Composable -private fun E2EIErrorNoSnoozeDialog( +fun E2EIErrorNoSnoozeDialog( isE2EILoading: Boolean, updateCertificate: () -> Unit ) {