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

GithubCommand: Edit initial reply if successful #34

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

gmta
Copy link
Contributor

@gmta gmta commented Dec 18, 2024

Making the initial deferred reply ephemeral caused the follow-up messages to show an ugly "Message could not be loaded" at the top, since the ephemeral message was deleted. And even if we didn't delete it, other users would not be able to load it.

This changes the initial reply to be visible to everyone and get edited on success. On failure, the initial reply is deleted again and a follow-up ephemeral message is posted to the user.

Making the initial deferred reply ephemeral caused the follow-up
messages to show an ugly "Message could not be loaded" at the top, since
the ephemeral message was deleted. And even if we didn't delete it,
other users would not be able to load it.

This changes the initial reply to be visible to everyone and get edited
on success. On failure, the initial reply is deleted again and a
follow-up ephemeral message is posted to the user.
@gmta gmta merged commit bd1aa26 into LadybirdBrowser:master Dec 18, 2024
2 checks passed
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.

1 participant