From 509b37fafa08b08026a6fee946ec54f1a83b54f9 Mon Sep 17 00:00:00 2001
From: Hailey <me@haileyok.com>
Date: Mon, 7 Oct 2024 14:12:17 -0700
Subject: [Video] Prevent screen from dimming while in full screen (#5637)

---
 .../com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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

diff --git a/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx b/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx
index c6536dec4..21db54322 100644
--- a/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx
+++ b/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx
@@ -8,7 +8,7 @@ import {useLingui} from '@lingui/react'
 
 import {HITSLOP_30} from '#/lib/constants'
 import {useAutoplayDisabled} from '#/state/preferences'
-import {useVideoMuteState} from 'view/com/util/post-embeds/VideoVolumeContext'
+import {useVideoMuteState} from '#/view/com/util/post-embeds/VideoVolumeContext'
 import {atoms as a, useTheme} from '#/alf'
 import {useIsWithinMessage} from '#/components/dms/MessageContext'
 import {Mute_Stroke2_Corner0_Rounded as MuteIcon} from '#/components/icons/Mute'
@@ -87,7 +87,7 @@ export const VideoEmbedInnerNative = React.forwardRef(
         />
         <VideoControls
           enterFullscreen={() => {
-            videoRef.current?.enterFullscreen()
+            videoRef.current?.enterFullscreen(true)
           }}
           toggleMuted={() => {
             videoRef.current?.toggleMuted()
-- 
cgit 1.4.1

