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

View file

@ -478,7 +478,7 @@ export async function downloadEphemeralPack(
}); });
const successfulStickerCount = jobResults.filter(item => item).length; 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'); throw new Error('downloadEphemeralPack: All stickers failed to download');
} }
} catch (error) { } catch (error) {