Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SES-2694] Incorrect back press warning message #1657

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

simophin
Copy link

@simophin simophin commented Sep 6, 2024

Basically need to tell the dialog what message to display according to state.

@@ -78,7 +83,8 @@ internal class MessageNotificationsViewModel(

data class UiState(
val pushEnabled: Boolean = true,
val showDialog: Boolean = false,
val showBackWarningDialogForNewAccount: Boolean = false,
val showBackWarningDialogForLoad: Boolean = false,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not integrate it in the showDialog instead? If we ever get more ways to show the message, this will become unruly.
showDialog could be a nullable string, where the dialog is hidden when the string is null and otherwise displays whatever the string is set to.
Also it seems that with this new change showBackWarningDialogForNewAccount is never set to true?

@SessionHero01 SessionHero01 merged commit a6886f1 into release/1.20.0 Sep 9, 2024
2 checks passed
@SessionHero01 SessionHero01 deleted the ses-2694-account-restore-text branch September 9, 2024 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants