tui: fix conversation loading
This commit is contained in:
parent
ea78edf039
commit
2cb1a0005d
@ -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