From 4e87ff328678c5541ba776cefb99bdd4b70ef505 Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Wed, 6 Apr 2022 14:40:57 -0700 Subject: [PATCH] Another fix for single-sticker packs Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> --- ts/types/Stickers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/types/Stickers.ts b/ts/types/Stickers.ts index c074a2649..c945822ae 100644 --- a/ts/types/Stickers.ts +++ b/ts/types/Stickers.ts @@ -706,7 +706,7 @@ async function doDownloadStickerPack( }); const successfulStickerCount = jobResults.filter(item => item).length; - if (successfulStickerCount === 0) { + if (successfulStickerCount === 0 && nonCoverStickers.length !== 0) { throw new Error('doDownloadStickerPack: All stickers failed to download'); }