Skip to content

Conversation

Ghatage
Copy link
Contributor

@Ghatage Ghatage commented Aug 14, 2025

DE8A04E9-AA97-4B4E-9264-D81C2F5D3BAA

@linmx0130 linmx0130 requested a review from acrognale August 14, 2025 04:33
@@ -1,8 +1,22 @@
import Foundation

enum MessageType {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be better to use the widely accepted term of Role instead of types here.

@@ -4,27 +4,57 @@ struct MessageRow: View {
let message: MessageBubble

var body: some View {
HStack {
if message.isUser {
if message.isTool {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be a switch case based on the message role.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants