tui: basic conversation selection and navigation
This commit is contained in:
@@ -132,6 +132,11 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
m.conversations.handleResize(m.width, m.height)
|
||||
}
|
||||
m.state = state(msg)
|
||||
case msgConversationSelected:
|
||||
m.opts.convShortname = msg.ShortName.String
|
||||
cmds = append(cmds, func() tea.Msg {
|
||||
return msgChangeState(stateChat)
|
||||
})
|
||||
case tea.WindowSizeMsg:
|
||||
m.width, m.height = msg.Width, msg.Height
|
||||
case msgError:
|
||||
|
||||
Reference in New Issue
Block a user