Removed Telegram block from mosaic

This commit is contained in:
dangered wolf 2022-07-24 14:02:22 -04:00
parent b2e22524d8
commit 656d3b3b0c
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -283,11 +283,10 @@ export const handleStatus = async (
console.log(`Media ${mediaNumber} found`);
actualMediaNumber = mediaNumber - 1;
processMedia(mediaList[actualMediaNumber]);
} else if (mediaList.length === 1 || (userAgent?.indexOf?.('Telegram') || '') > -1) {
} else if (mediaList.length === 1 ) {
console.log(`Media ${mediaNumber} not found, ${mediaList.length} total`);
processMedia(firstMedia);
// Telegram hates Mosaic media for some reason
} else if (mediaList.length > 1 && userAgent?.indexOf('Telegram') === -1) {
} else if (mediaList.length > 1) {
console.log('Handling mosaic');
processMedia(await handleMosaic(mediaList));
renderedMosaic = true;