From 1df4a487697dcd00178c642a054cd4e0216ae757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Luis=20Monta=C3=B1es=20Ojados?= Date: Mon, 19 Jan 2026 17:22:27 +0100 Subject: [PATCH] fix: Update Call Detail view on new packets for real-time monitoring --- internal/tui/model.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/internal/tui/model.go b/internal/tui/model.go index ecc6fe7..bb815bd 100644 --- a/internal/tui/model.go +++ b/internal/tui/model.go @@ -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() } }