Add log for missing sticker data for download
This commit is contained in:
parent
943518dc3a
commit
307fb7346d
1 changed files with 10 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue