From 1c7a26b65ea84f235be5ef85a42edce0d2fbb2b5 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Wed, 5 Jul 2023 09:28:17 +0200 Subject: [PATCH] fix: index typo in loop for thumbnail download --- ts/receiver/attachments.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/receiver/attachments.ts b/ts/receiver/attachments.ts index 969ec3578..d4c16f52c 100644 --- a/ts/receiver/attachments.ts +++ b/ts/receiver/attachments.ts @@ -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];