Skip to content

Commit 138bb96

Browse files
Fixed bug with loading channels
1 parent f87de2d commit 138bb96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/StreamChatSwiftUI/ChatChannelList/ChatChannelListViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ open class ChatChannelListViewModel: ObservableObject, ChatChannelListController
123123
///
124124
/// - Parameter index: the currently displayed index.
125125
public func checkForChannels(index: Int) {
126-
if index < controller?.channels.count ?? 0 - 10 {
126+
if index < (controller?.channels.count ?? 0) - 10 {
127127
return
128128
}
129129

0 commit comments

Comments
 (0)