Skip to content

Commit 968bace

Browse files
committed
add optional id param in customContent
1 parent e0263fd commit 968bace

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/ChatGPTUI/Models/MessageRow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public struct MessageRow<CustomContent: View>: Identifiable {
3333
public enum MessageRowType<CustomContent: View> {
3434
case attributed(AttributedOutput)
3535
case rawText(String)
36-
case customContent((_ id: UUID?) -> CustomContent)
36+
case customContent(() -> CustomContent)
3737

3838
public var text: String {
3939
switch self {

Sources/ChatGPTUI/Views/MessageRowView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public struct MessageRowView<CustomContent: View>: View {
6868
}
6969

7070
case .customContent(let customViewProvider):
71-
customViewProvider(message.id)
71+
customViewProvider()
7272
}
7373

7474
if let error = responseError {

Sources/ChatGPTUI/Views/VoiceChatView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public struct VoiceChatView<CustomContent: View>: View {
3232
}
3333

3434
case .customContent(let customViewProvider):
35-
customViewProvider(nil)
35+
customViewProvider()
3636
}
3737
}
3838
}

0 commit comments

Comments
 (0)