Add log for missing sticker data for download

This commit is contained in:
Jamie Kyle 2024-02-14 12:19:40 -08:00 committed by GitHub
parent 943518dc3a
commit 307fb7346d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -189,12 +189,16 @@ export async function queueAttachmentDownloads(
); );
} }
} }
if (!data && sticker.data) { if (!data) {
data = await AttachmentDownloads.addJob(sticker.data, { if (sticker.data) {
messageId, data = await AttachmentDownloads.addJob(sticker.data, {
type: 'sticker', messageId,
index: 0, type: 'sticker',
}); index: 0,
});
} else {
log.error(`${idLog}: Sticker data was missing`);
}
} }
if (!status) { if (!status) {
// Save the packId/packKey for future download/install // Save the packId/packKey for future download/install