Skip to content

Commit 2721734

Browse files
committed
Fix using previous presentation mode value which leads to incorrect state when presenting ChatChannelView using UIKit in iOS 26.1
1 parent fd63af1 commit 2721734

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/StreamChatSwiftUI/ChatChannel/ChatChannelView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ public struct ChatChannelView<Factory: ViewFactory>: View, KeyboardReadable {
183183
viewModel.reactionsShown = false
184184
messageDisplayInfo = nil
185185
}
186-
.onChange(of: presentationMode.wrappedValue, perform: { newValue in
187-
if newValue.isPresented == false {
186+
.onChange(of: presentationMode.wrappedValue, perform: { _ in
187+
if presentationMode.wrappedValue.isPresented == false {
188188
viewModel.onViewDissappear()
189189
} else {
190190
viewModel.setActive()

0 commit comments

Comments
 (0)