From d634f00d907bb646a693562b85f6292571c44a1c Mon Sep 17 00:00:00 2001 From: Nuno Vieira Date: Wed, 6 Aug 2025 21:33:40 +0100 Subject: [PATCH 1/3] Fix video player not playing when GalleryVC is opened --- Sources/StreamChatUI/Gallery/GalleryVC.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/StreamChatUI/Gallery/GalleryVC.swift b/Sources/StreamChatUI/Gallery/GalleryVC.swift index d9c8b9834ef..08e36be80a3 100644 --- a/Sources/StreamChatUI/Gallery/GalleryVC.swift +++ b/Sources/StreamChatUI/Gallery/GalleryVC.swift @@ -249,8 +249,10 @@ open class GalleryVC: _ViewController, override open func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) - attachmentsCollectionView.scrollToItem( - at: .init(item: content.currentPage, section: 0), + + self.updateContent() + self.attachmentsCollectionView.scrollToItem( + at: .init(item: self.content.currentPage, section: 0), at: .centeredHorizontally, animated: false ) From 962ee76485508b1d70b797019a33e3bfbae96620 Mon Sep 17 00:00:00 2001 From: Nuno Vieira Date: Wed, 6 Aug 2025 21:37:39 +0100 Subject: [PATCH 2/3] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4d353857b9..828f72ef512 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### 🐞 Fixed - Fix the height of the attachment view in the composer when using larger dynamic type [3762](https://github.com/GetStream/stream-chat-swift/pull/3762) - Remove animation in message reactions when opening a sheet in the channel view [#3763](https://github.com/GetStream/stream-chat-swift/pull/3763) +- Fix video player not playable when GalleryVC is opened [#3773](https://github.com/GetStream/stream-chat-swift/pull/3773) # [4.83.0](https://github.com/GetStream/stream-chat-swift/releases/tag/4.83.0) _July 28, 2025_ From 5dd367e10a2d6ba9448db047a88aafc35b0ffc60 Mon Sep 17 00:00:00 2001 From: Nuno Vieira Date: Wed, 6 Aug 2025 22:08:54 +0100 Subject: [PATCH 3/3] Fix swift format --- Sources/StreamChatUI/Gallery/GalleryVC.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/StreamChatUI/Gallery/GalleryVC.swift b/Sources/StreamChatUI/Gallery/GalleryVC.swift index 08e36be80a3..ba69b80d494 100644 --- a/Sources/StreamChatUI/Gallery/GalleryVC.swift +++ b/Sources/StreamChatUI/Gallery/GalleryVC.swift @@ -250,9 +250,9 @@ open class GalleryVC: _ViewController, override open func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) - self.updateContent() - self.attachmentsCollectionView.scrollToItem( - at: .init(item: self.content.currentPage, section: 0), + updateContent() + attachmentsCollectionView.scrollToItem( + at: .init(item: content.currentPage, section: 0), at: .centeredHorizontally, animated: false )