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

[QA-31] Fix dialog not shown on seed send attempt #1580

Merged

Conversation

bemusementpark
Copy link

No description provided.

@bemusementpark bemusementpark changed the title [Q] Fix dialog not shown on seed send attempt [QA-31] Fix dialog not shown on seed send attempt Jul 29, 2024
@bemusementpark bemusementpark changed the base branch from master to release/1.19.0 July 29, 2024 03:32
@bemusementpark bemusementpark merged commit 32dbea1 into oxen-io:release/1.19.0 Jul 29, 2024
1 check passed
@bemusementpark bemusementpark deleted the fix-send-seed-dialog branch July 29, 2024 03:49
Copy link
Collaborator

@AL-Session AL-Session left a comment

Choose a reason for hiding this comment

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

One suggestion, but I'm happy to approve whether it's adopted or not.

showSessionDialog {
title(R.string.dialog_send_seed_title)
text(R.string.dialog_send_seed_explanation)
button(R.string.dialog_send_seed_send_button_title) { sendTextOnlyMessage(true) }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would it be better to have a mutable copy of the argument which we can flip to true rather than calling ourselves, and then we just return null on cancel?

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, this one was mostly a revert so I merged w/one

IDK if I understand, but it could make sense for showDialog or some variant to be a suspending function like Snackbar is... 🤔 so you call val result = showDialog(...)

but right now it's not true recursion, as sendTextOnlyMessage(true) is called in a listener as a response to a click.

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