fix: Update Call Detail view on new packets for real-time monitoring

This commit is contained in:
Jose Luis Montañes Ojados
2026-01-19 17:22:27 +01:00
parent 23349e2039
commit 1df4a48769

View File

@@ -320,13 +320,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
// If we are in Call Detail view, we might need to update the viewport content dynamically!
if m.subView == SubViewCallDetail {
// Re-render subview content effectively updates the strings, but
// we need to set the content on viewport again if it changed.
// This is handled in View() normally, but viewport needs SetContent.
// Let's force a viewport update by triggering a dummy message or just re-setting it.
// Actually, View() calls renderCallDetail which calls SetContent.
// But View() is only called if Update returns a modified model.
// We modified the store, so that counts.
m.updateCallDetailView()
}
}