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

Implement undo for send now action in outbox message list #6332

Merged
merged 1 commit into from
May 2, 2022

Conversation

st3iny
Copy link
Member

@st3iny st3iny commented Apr 29, 2022

Fix #6248

The action "Send now" in the action menu of the outbox message list now works exactly the same way as the "Send now" button of the composer modal.

@@ -105,4 +108,33 @@ export default {

commit('deleteMessage', { id })
},

async sendMessageWithUndo({ getters, dispatch }, { message }) {
Copy link
Member

Choose a reason for hiding this comment

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

nit: the action is async but can't be awaited. You could return a new promise at the end that calls the resolve callback when everything is done

Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

Looks good

@ChristophWurst ChristophWurst added this to the v1.13.0 milestone May 2, 2022
@ChristophWurst
Copy link
Member

/backport to stable1.12

@ChristophWurst
Copy link
Member

@st3iny is there anything missing?

@st3iny
Copy link
Member Author

st3iny commented May 2, 2022

@st3iny is there anything missing?

This is done. I forgot to change the label.

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Undo Sending for "Send now" button in the outbox
2 participants