From 4975d97f35bba13d0b9f397b49f70e7f4e1be0eb Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Fri, 1 Apr 2022 10:48:05 -0700 Subject: [PATCH] Fix single sticker stickerpack download 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 76131751f..c074a2649 100644 --- a/ts/types/Stickers.ts +++ b/ts/types/Stickers.ts @@ -478,7 +478,7 @@ export async function downloadEphemeralPack( }); const successfulStickerCount = jobResults.filter(item => item).length; - if (successfulStickerCount === 0) { + if (successfulStickerCount === 0 && nonCoverStickers.length !== 0) { throw new Error('downloadEphemeralPack: All stickers failed to download'); } } catch (error) {