diff --git a/js/modules/types/visual_attachment.js b/js/modules/types/visual_attachment.js index a1bd7637b..254e2a021 100644 --- a/js/modules/types/visual_attachment.js +++ b/js/modules/types/visual_attachment.js @@ -92,7 +92,8 @@ exports.makeVideoScreenshot = ({ const image = dataURLToBlobSync(canvas.toDataURL(contentType)); video.removeEventListener('canplay', capture); - + video.pause(); + video.currentTime = 0; resolve(image); } @@ -103,6 +104,7 @@ exports.makeVideoScreenshot = ({ }); video.src = objectUrl; + video.muted = true; // for some reason, this is to be started, otherwise the generated thumbnail will be empty video.play(); }); diff --git a/ts/receiver/queuedJob.ts b/ts/receiver/queuedJob.ts index 72a0e7bdd..128c5ebba 100644 --- a/ts/receiver/queuedJob.ts +++ b/ts/receiver/queuedJob.ts @@ -129,6 +129,10 @@ async function copyFromQuotedMessage( ); copyFromQuotedMessage(msg, quote, attemptCount + 1).ignore(); }, attemptCount * attemptCount * 500); + } else { + window.log.warn( + `We did not found quoted message ${id} after ${attemptCount} attempts.` + ); } quote.referencedMessageNotFound = true;