From 307fb7346df42ffd77d2c275b7b256841e2222f1 Mon Sep 17 00:00:00 2001 From: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com> Date: Wed, 14 Feb 2024 12:19:40 -0800 Subject: [PATCH] Add log for missing sticker data for download --- ts/util/queueAttachmentDownloads.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/ts/util/queueAttachmentDownloads.ts b/ts/util/queueAttachmentDownloads.ts index ec1f4057063..aa657ad8dda 100644 --- a/ts/util/queueAttachmentDownloads.ts +++ b/ts/util/queueAttachmentDownloads.ts @@ -189,12 +189,16 @@ export async function queueAttachmentDownloads( ); } } - if (!data && sticker.data) { - data = await AttachmentDownloads.addJob(sticker.data, { - messageId, - type: 'sticker', - index: 0, - }); + if (!data) { + if (sticker.data) { + data = await AttachmentDownloads.addJob(sticker.data, { + messageId, + type: 'sticker', + index: 0, + }); + } else { + log.error(`${idLog}: Sticker data was missing`); + } } if (!status) { // Save the packId/packKey for future download/install