From 71d12aec15fb84618b35153f95a30a7bffb30cd6 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Sun, 7 Jan 2024 16:33:20 +0100 Subject: [PATCH] No play button in video compact mode --- .../MediaUI/Sources/MediaUI/MediaUIAttachmentVideoView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Packages/MediaUI/Sources/MediaUI/MediaUIAttachmentVideoView.swift b/Packages/MediaUI/Sources/MediaUI/MediaUIAttachmentVideoView.swift index 64e5e53b..85c9021f 100644 --- a/Packages/MediaUI/Sources/MediaUI/MediaUIAttachmentVideoView.swift +++ b/Packages/MediaUI/Sources/MediaUI/MediaUIAttachmentVideoView.swift @@ -114,7 +114,8 @@ public struct MediaUIAttachmentVideoView: View { if !preferences.autoPlayVideo, !viewModel.forceAutoPlay, !isFullScreen, - !viewModel.isPlaying { + !viewModel.isPlaying, + !isCompact { Button(action: { viewModel.play() }, label: {