Forwarded messages must use different timestamps

This commit is contained in:
Fedor Indutny 2021-06-24 10:38:52 -07:00 committed by GitHub
parent b7bdfef0c6
commit a053c395a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {