fix: index typo in loop for thumbnail download

This commit is contained in:
Audric Ackermann 2023-07-05 09:28:17 +02:00
parent 41b488a71e
commit 1c7a26b65e

View file

@ -218,7 +218,7 @@ async function processQuoteAttachments(
const isOpenGroupV2 = convo.isOpenGroupV2();
const openGroupV2Details = (isOpenGroupV2 && convo.toOpenGroupV2()) || undefined;
for (let index = 0; index < quote.attachments.length - 1; index++) {
for (let index = 0; index < quote.attachments.length; index++) {
// If we already have a path, then we copied this image from the quoted
// message and we don't need to download the attachment.
const attachment = quote.attachments[index];