Skip to content

Commit

Permalink
fix: change correct dialog to be displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandreferris committed Mar 22, 2024
1 parent 18852ff commit 6ad9986
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -193,10 +193,12 @@ private fun E2EIEnrollmentScreenContent(
}

if (state.isCertificateEnrollError) {
E2EIErrorWithDismissDialog(
E2EIErrorNoSnoozeDialog(
isE2EILoading = state.isLoading,
updateCertificate = enrollE2EICertificate,
onDismiss = dismissErrorDialog
updateCertificate = {
dismissErrorDialog()
enrollE2EICertificate()
}
)
}

Expand Down

0 comments on commit 6ad9986

Please sign in to comment.