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) {
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