diff --git a/.env b/.env index 743f9f2d..412efbf5 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ API_ID=1025907 API_HASH=452b0359b988148995f22ff0f4229750 VERSION=1.0.4 -VERSION_FULL=1.0.4 (75) -BUILD=75 +VERSION_FULL=1.0.4 (76) +BUILD=76 diff --git a/src/components/wrappers.ts b/src/components/wrappers.ts index a508364d..875d383f 100644 --- a/src/components/wrappers.ts +++ b/src/components/wrappers.ts @@ -1353,13 +1353,12 @@ export function wrapSticker({doc, div, middleware, lazyLoadQueue, group, play, o const cacheContext = appDownloadManager.getCacheContext(doc); audio.src = cacheContext.url; - await onMediaLoad(audio); + audio.play(); + await onMediaLoad(audio, undefined, true); audio.addEventListener('ended', () => { audio.src = ''; }, {once: true}); - - audio.play(); } catch(err) { }