Private
Public Access
1
0

tui: only perform database updates for modified messages

This commit is contained in:
2025-01-25 19:11:25 +00:00
parent 8e2991da1a
commit fb3edad0c3
3 changed files with 34 additions and 32 deletions

View File

@@ -47,16 +47,6 @@ func (m *Model) cloneMessage(message conversation.Message, selected bool) tea.Cm
}
}
func (m *Model) updateMessageContent(message *conversation.Message) tea.Cmd {
return func() tea.Msg {
err := m.App.UpdateMessageContent(message)
if err != nil {
return shared.WrapError(err)
}
return msgMessageUpdated(message)
}
}
func (m *Model) cycleSelectedRoot(conv *conversation.Conversation, dir model.MessageCycleDirection) tea.Cmd {
if len(conv.RootMessages) < 2 {
return nil