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 };
|
||||
let timestamp = Date.now();
|
||||
const baseTimestamp = Date.now();
|
||||
|
||||
// Actually send the message
|
||||
// load any sticker data, attachments, or link previews that we need to
|
||||
// send along with the message and do the send to each conversation.
|
||||
await Promise.all(
|
||||
conversations.map(async conversation => {
|
||||
timestamp += 1;
|
||||
|
||||
conversations.map(async (conversation, offset) => {
|
||||
const timestamp = baseTimestamp + offset;
|
||||
if (conversation) {
|
||||
const sticker = message.get('sticker');
|
||||
if (sticker) {
|
||||
|
|
Loading…
Reference in a new issue