Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2022-06-02 18:17:16 +0300
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-06-03 16:35:21 +0300
commitcea283cb67aecf3c9d7874119cab05a72e0b1c39 (patch)
treeb7595e389e4e9dd0eee8a522dad984553f9446e9 /src
parentb303777415ae004ac6fb1508897fea290eafb9c7 (diff)
Fix losing the reply message ID when editing an outbox message
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'src')
-rw-r--r--src/components/Composer.vue6
-rw-r--r--src/components/NewMessageModal.vue1
2 files changed, 6 insertions, 1 deletions
diff --git a/src/components/Composer.vue b/src/components/Composer.vue
index 24efb6c4a..f6afa6da1 100644
--- a/src/components/Composer.vue
+++ b/src/components/Composer.vue
@@ -522,6 +522,10 @@ export default {
type: Function,
required: true,
},
+ inReplyToMessageId: {
+ type: String,
+ default: undefined,
+ },
replyTo: {
type: Object,
required: false,
@@ -857,7 +861,7 @@ export default {
subject: this.subjectVal,
body: this.encrypt ? plain(this.bodyVal) : html(this.bodyVal),
attachments: this.attachments,
- inReplyToMessageId: this.replyTo ? this.replyTo.messageId : undefined,
+ inReplyToMessageId: this.inReplyToMessageId ?? (this.replyTo ? this.replyTo.messageId : undefined),
isHtml: !this.editorPlainText,
requestMdn: this.requestMdn,
sendAt: this.sendAtVal ? Math.floor(this.sendAtVal / 1000) : undefined,
diff --git a/src/components/NewMessageModal.vue b/src/components/NewMessageModal.vue
index 2daceab87..5612cd07a 100644
--- a/src/components/NewMessageModal.vue
+++ b/src/components/NewMessageModal.vue
@@ -11,6 +11,7 @@
:subject="composerData.subject"
:attachments-data="composerData.attachments"
:body="composerData.body"
+ :in-reply-to-message-id="composerData.inReplyToMessageId"
:reply-to="composerData.replyTo"
:draft-id="composerData.draftId"
:send-at="composerData.sendAt * 1000"