From f74ba95e95507c0bfd8532c370e943d79d8e01ca Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 20 Feb 2025 11:10:38 +0400 Subject: [PATCH] Don't track caption in fullscreen video view. Fixes #28981. --- Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp index f50654f209..289376216c 100644 --- a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp +++ b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp @@ -1510,6 +1510,9 @@ void OverlayWidget::refreshCaptionGeometry() { if (_caption.isEmpty() && (!_stories || !_stories->repost())) { _captionRect = QRect(); return; + } else if (_fullScreenVideo) { + _captionRect = QRect(); + return; } if (_groupThumbs && _groupThumbs->hiding()) {