Skip to content

Commit

Permalink
fix: misleading dialog copy when certificate enrolling fails (WPB-712…
Browse files Browse the repository at this point in the history
…9) (#2805)
  • Loading branch information
alexandreferris authored Mar 22, 2024
1 parent 2d37528 commit 4dc00e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ private fun E2EIErrorWithSnoozeDialog(
}

@Composable
private fun E2EIErrorNoSnoozeDialog(
fun E2EIErrorNoSnoozeDialog(
isE2EILoading: Boolean,
updateCertificate: () -> Unit
) {
Expand Down

0 comments on commit 4dc00e6

Please sign in to comment.