Forwarded messages must use different timestamps

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2021-06-24 11:43:36 -07:00 committed by GitHub
parent dcb5bb6726
commit 7fab45ef8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -2416,15 +2416,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) {