Forward: Don't re-use timestamp or attachment files

This commit is contained in:
Scott Nonnenberg 2021-06-03 14:26:56 -07:00 committed by GitHub
parent 2370c227e3
commit 6d82acd23c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 7 deletions

View file

@ -3526,7 +3526,12 @@ export class ConversationModel extends window.Backbone
preview: WhatIsThis,
sticker?: WhatIsThis,
mentions?: BodyRangesType,
{ dontClearDraft = false } = {}
{
dontClearDraft,
timestamp,
}: { dontClearDraft: boolean; timestamp?: number } = {
dontClearDraft: false,
}
): void {
if (this.isGroupV1AndDisabled()) {
return;
@ -3549,7 +3554,7 @@ export class ConversationModel extends window.Backbone
const recipients = this.getRecipients();
this.queueJob(async () => {
const now = Date.now();
const now = timestamp || Date.now();
await this.maybeApplyUniversalTimer();