From 1fc889b883ffd666b4c439738f1f5e97496d55e6 Mon Sep 17 00:00:00 2001
From: Islam Rustamov <islamrustamov@rambler.ru>
Date: Tue, 14 Jan 2025 14:42:50 +0300
Subject: Remove unnecessary addEventListener call for video (#7433)

---
 src/view/com/util/post-embeds/VideoEmbedInner/web-controls/utils.tsx | 3 ---
 1 file changed, 3 deletions(-)

(limited to 'src/view/com/util/post-embeds/VideoEmbedInner/web-controls/utils.tsx')

diff --git a/src/view/com/util/post-embeds/VideoEmbedInner/web-controls/utils.tsx b/src/view/com/util/post-embeds/VideoEmbedInner/web-controls/utils.tsx
index 8aa2d3f7d..60ee33f45 100644
--- a/src/view/com/util/post-embeds/VideoEmbedInner/web-controls/utils.tsx
+++ b/src/view/com/util/post-embeds/VideoEmbedInner/web-controls/utils.tsx
@@ -149,9 +149,6 @@ export function useVideoElement(ref: React.RefObject<HTMLVideoElement>) {
     ref.current.addEventListener('ended', handleEnded, {
       signal: abortController.signal,
     })
-    ref.current.addEventListener('volumechange', handleVolumeChange, {
-      signal: abortController.signal,
-    })
 
     return () => {
       abortController.abort()
-- 
cgit 1.4.1

