tui: fix conversation loading
This commit is contained in:
parent
a06ac694c6
commit
8bc2523c17
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user