Show edited message content immediately

This commit is contained in:
Matt Low 2024-12-11 16:01:27 +00:00
parent d2ce8edad8
commit 8c7864fdf6

View File

@ -95,6 +95,7 @@ func (m *Model) Update(msg tea.Msg) (shared.ViewModel, tea.Cmd) {
if toEdit.Content != contents {
toEdit.Content = contents
m.setMessage(m.selectedMessage, toEdit)
m.updateContent()
if m.persistence && toEdit.ID > 0 {
// create clone of message with its new contents
cmds = append(cmds, m.cloneMessage(toEdit, true))