Forwarded messages must use different timestamps
This commit is contained in:
parent
b7bdfef0c6
commit
a053c395a4
1 changed files with 3 additions and 4 deletions
|
@ -2430,15 +2430,14 @@ Whisper.ConversationView = Whisper.View.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
const sendMessageOptions = { dontClearDraft: true };
|
const sendMessageOptions = { dontClearDraft: true };
|
||||||
let timestamp = Date.now();
|
const baseTimestamp = Date.now();
|
||||||
|
|
||||||
// Actually send the message
|
// Actually send the message
|
||||||
// load any sticker data, attachments, or link previews that we need to
|
// load any sticker data, attachments, or link previews that we need to
|
||||||
// send along with the message and do the send to each conversation.
|
// send along with the message and do the send to each conversation.
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
conversations.map(async conversation => {
|
conversations.map(async (conversation, offset) => {
|
||||||
timestamp += 1;
|
const timestamp = baseTimestamp + offset;
|
||||||
|
|
||||||
if (conversation) {
|
if (conversation) {
|
||||||
const sticker = message.get('sticker');
|
const sticker = message.get('sticker');
|
||||||
if (sticker) {
|
if (sticker) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue