From 8bc2523c174cb45efecd5f405385278a2b3329d9 Mon Sep 17 00:00:00 2001 From: Matt Low Date: Wed, 13 Mar 2024 05:15:41 +0000 Subject: [PATCH] tui: fix conversation loading --- pkg/tui/tui.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/tui/tui.go b/pkg/tui/tui.go index cb72484..dee11b1 100644 --- a/pkg/tui/tui.go +++ b/pkg/tui/tui.go @@ -124,8 +124,8 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m.input.SetWidth(msg.Width - 1) m.updateContent() case msgConversationLoaded: - c := (*models.Conversation)(msg) - cmd = m.loadMessages(c) + m.conversation = (*models.Conversation)(msg) + cmd = m.loadMessages(m.conversation) case msgMessagesLoaded: m.messages = []models.Message(msg) m.updateContent()