diff options
author | Anna Larch <anna@nextcloud.com> | 2022-04-07 13:53:54 +0300 |
---|---|---|
committer | Anna Larch <anna@nextcloud.com> | 2022-04-07 15:01:06 +0300 |
commit | 77b2161fb6680646b4eac206cdf82c2761a2cda0 (patch) | |
tree | fbfdca988be4667be85a5ea30cf833cda28f184d /src | |
parent | 2bbcbb9d59e30c87126f048d41c7030680c773d3 (diff) |
Add sendAt timestamp
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/NewMessageModal.vue | 12 |
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, |