From 5c988afa323d54216b88cbf188d330fc0b8ab5e4 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Wed, 6 Apr 2022 11:14:46 +0200 Subject: Do not delete IMAP messages after sending an outbox message Only IMAP messages has an IMAP draft. An outbox message doesn't have one. Thus we must not delete any message with the same (coincidental) ID. Signed-off-by: Christoph Wurst --- src/components/OutboxComposer.vue | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/components/OutboxComposer.vue b/src/components/OutboxComposer.vue index d88f83007..124846523 100644 --- a/src/components/OutboxComposer.vue +++ b/src/components/OutboxComposer.vue @@ -113,10 +113,6 @@ export default { }) await this.$store.dispatch('outbox/sendMessage', { id: message.id }) - - // Remove old draft envelope - this.$store.commit('removeEnvelope', { id: data.draftId }) - this.$store.commit('removeMessage', { id: data.draftId }) }, async fetchOriginalMessage() { if (this.templateMessageId === undefined) { -- cgit v1.2.3