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:
authorAnna Larch <anna@nextcloud.com>2022-04-07 13:53:54 +0300
committerAnna Larch <anna@nextcloud.com>2022-04-07 15:01:06 +0300
commit77b2161fb6680646b4eac206cdf82c2761a2cda0 (patch)
treefbfdca988be4667be85a5ea30cf833cda28f184d /src
parent2bbcbb9d59e30c87126f048d41c7030680c773d3 (diff)
Add sendAt timestamp
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'src')
-rw-r--r--src/components/NewMessageModal.vue12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/NewMessageModal.vue b/src/components/NewMessageModal.vue
index e9961ed62..fef9585a5 100644
--- a/src/components/NewMessageModal.vue
+++ b/src/components/NewMessageModal.vue
@@ -86,16 +86,16 @@ export default {
const now = new Date().getTime()
const dataForServer = {
accountId: data.account,
- sendAt: Math.floor(now / 1000), // JS timestamp is in milliseconds
subject: data.subject,
body: data.isHtml ? data.body.value : toPlain(data.body).value,
isHtml: data.isHtml,
- isMdn: false,
- inReplyToMessageId: '',
to: data.to,
cc: data.cc,
bcc: data.bcc,
attachments: data.attachments,
+ aliasId: null,
+ inReplyToMessageId: null,
+ sendAt: Math.floor(now / 1000), // JS timestamp is in milliseconds
}
// TODO: update the message instead of enqueing another time
const message = await this.$store.dispatch('outbox/enqueueMessage', {
@@ -107,16 +107,16 @@ export default {
const now = new Date().getTime()
const dataForServer = {
accountId: data.account,
- sendAt: Math.floor(now / 1000), // JS timestamp is in milliseconds
subject: data.subject,
body: data.isHtml ? data.body.value : toPlain(data.body).value,
isHtml: data.isHtml,
- isMdn: false,
- inReplyToMessageId: '',
to: data.to,
cc: data.cc,
bcc: data.bcc,
attachments: data.attachments,
+ aliasId: null,
+ inReplyToMessageId: null,
+ sendAt: Math.floor(now / 1000), // JS timestamp is in milliseconds
}
const message = await this.$store.dispatch('outbox/enqueueMessage', {
message: dataForServer,