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

Pipe all composer data through the Vuex store #6186

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

ChristophWurst
Copy link
Member

This is a follow-up to #6181. This unifies the data handling of the composer to work for both IMAP and local (outbox) messages.

The logic of fetching an original message for the Edit as new message is now handled centrally by the store.

What I've tested

  • Compose a new message
    • Draft is still saved
    • Message can be enqueued
  • Handle a mailto link
    • To, cc and subject worked
  • Open and edit an outbox message
    • Changes are sent to the server
    • Sending is borked but it was already before. I only added a comment to the relevant line.

}
await this.$store.dispatch('outbox/updateMessage', { message: dataForServer, id: this.composerData.id })
} else {
if (data.draftId === undefined && this.draft) {
Copy link
Member Author

Choose a reason for hiding this comment

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

@GretaD @st3iny this code didn't make any sense but I just left it as is. There was no this.draft in the old component either. This will always be undefined.

Copy link
Member Author

Choose a reason for hiding this comment

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

Found it. This is yet another copy-paste error introduced with 35d5d78. this.draft was blindly copied from NewMessageDetail where we actually do handle drafts.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst ChristophWurst merged commit 286c251 into feature/outbox Apr 6, 2022
@ChristophWurst ChristophWurst deleted the refactor/composer-outbox-vue branch April 6, 2022 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants