Skip to content

Commit d484323

Browse files
committed
Merge branch 'v5' into v5-remove-stream-collection-lazy-cached-map-collection
# Conflicts: # Sources/StreamChatSwiftUI/ChatThreadList/ChatThreadList.swift
2 parents a56cbd1 + bb08956 commit d484323

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/StreamChatSwiftUI/ChatThreadList/ChatThreadList.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import SwiftUI
1010
public struct ThreadList<Factory: ViewFactory, HeaderView: View, FooterView: View>: View {
1111
var threads: [ChatThread]
1212
private var factory: Factory
13-
private var threadDestination: (ChatThread) -> Factory.ThreadDestination
13+
private var threadDestination: @MainActor (ChatThread) -> Factory.ThreadDestination
1414
@Binding private var selectedThread: ThreadSelectionInfo?
1515

1616
private var onItemTap: (ChatThread) -> Void
@@ -25,7 +25,7 @@ public struct ThreadList<Factory: ViewFactory, HeaderView: View, FooterView: Vie
2525
public init(
2626
factory: Factory,
2727
threads: [ChatThread],
28-
threadDestination: @escaping (ChatThread) -> Factory.ThreadDestination,
28+
threadDestination: @escaping @MainActor (ChatThread) -> Factory.ThreadDestination,
2929
selectedThread: Binding<ThreadSelectionInfo?>,
3030
onItemTap: @escaping (ChatThread) -> Void,
3131
onItemAppear: @escaping (Int) -> Void,

0 commit comments

Comments
 (0)