Show edited message content immediately
This commit is contained in:
@@ -95,6 +95,7 @@ func (m *Model) Update(msg tea.Msg) (shared.ViewModel, tea.Cmd) {
|
|||||||
if toEdit.Content != contents {
|
if toEdit.Content != contents {
|
||||||
toEdit.Content = contents
|
toEdit.Content = contents
|
||||||
m.setMessage(m.selectedMessage, toEdit)
|
m.setMessage(m.selectedMessage, toEdit)
|
||||||
|
m.updateContent()
|
||||||
if m.persistence && toEdit.ID > 0 {
|
if m.persistence && toEdit.ID > 0 {
|
||||||
// create clone of message with its new contents
|
// create clone of message with its new contents
|
||||||
cmds = append(cmds, m.cloneMessage(toEdit, true))
|
cmds = append(cmds, m.cloneMessage(toEdit, true))
|
||||||
|
|||||||
Reference in New Issue
Block a user