Fix single sticker stickerpack download

This commit is contained in:
Fedor Indutny 2022-03-31 18:07:30 -07:00 committed by GitHub
parent 85989fda3c
commit 140d19beb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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