fix the memory bug

This commit is contained in:
Kujtim Hoxha
2025-04-21 13:33:51 +02:00
parent 77cf4bf688
commit dc0894025e
6 changed files with 128 additions and 56 deletions
+1
View File
@@ -370,6 +370,7 @@ func (m *messagesCmp) SetSize(width, height int) tea.Cmd {
delete(m.cachedContent, msg.ID)
}
m.uiMessages = make([]uiMessage, 0)
m.renderView()
return nil
}