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) {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue