wip: refactoring tui

This commit is contained in:
adamdottv
2025-05-29 10:17:48 -05:00
parent 6759674c0f
commit fce9e79d38
5 changed files with 12 additions and 13 deletions

View File

@@ -76,7 +76,7 @@ func renderMessage(msg string, isUser bool, isFocused bool, width int, info ...s
return rendered
}
func renderUserMessage(msg client.SessionMessage, isFocused bool, width int, position int) uiMessage {
func renderUserMessage(msg client.MessageInfo, isFocused bool, width int) uiMessage {
// var styledAttachments []string
t := theme.CurrentTheme()
baseStyle := styles.BaseStyle()
@@ -118,8 +118,8 @@ func renderUserMessage(msg client.SessionMessage, isFocused bool, width int, pos
}
switch part.(type) {
case client.SessionMessagePartText:
textPart := part.(client.SessionMessagePartText)
case client.MessagePartText:
textPart := part.(client.MessagePartText)
content = renderMessage(textPart.Text, true, isFocused, width, info...)
}
}