Skip to content

Commit e3f1fa8

Browse files
committed
Fix Channel List not preselecting channel in iPad
1 parent 7032e72 commit e3f1fa8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Sources/StreamChatSwiftUI/ChatChannelList/ChatChannelListView.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,7 @@ public struct ChatChannelListContentView<Factory: ViewFactory>: View {
246246
leadingSwipeButtonTapped: { _ in /* No leading button by default. */ }
247247
)
248248
.onAppear {
249-
if horizontalSizeClass == .regular {
250-
viewModel.preselectChannelIfNeeded()
251-
}
249+
viewModel.preselectChannelIfNeeded()
252250
}
253251
}
254252

0 commit comments

Comments
 (0)