fix: Ensure transaction flow navigation works for all calls

This commit is contained in:
Jose Luis Montañes Ojados
2026-01-19 23:37:04 +01:00
parent 1fb7d447a4
commit c052cc72fb

View File

@@ -669,7 +669,7 @@ func (m *Model) updateSubView(msg tea.Msg) (tea.Model, tea.Cmd) {
return m, nil return m, nil
case "e": case "e":
// Export Call Log // Export Call Log
flows := m.callFlowStore.GetRecentFlows(20) flows := m.callFlowStore.GetSortedFlows()
if m.selectedFlow < len(flows) { if m.selectedFlow < len(flows) {
flow := flows[m.selectedFlow] flow := flows[m.selectedFlow]
// Sanitize Call-ID for filename // Sanitize Call-ID for filename
@@ -722,7 +722,7 @@ func (m *Model) updateSubView(msg tea.Msg) (tea.Model, tea.Cmd) {
m.updateCallDetailView() m.updateCallDetailView()
} }
case "down", "j": case "down", "j":
flows := m.callFlowStore.GetRecentFlows(20) flows := m.callFlowStore.GetSortedFlows()
if m.selectedFlow < len(flows) { if m.selectedFlow < len(flows) {
flow := flows[m.selectedFlow] flow := flows[m.selectedFlow]
if m.selectedPacketIndex < len(flow.Packets)-1 { if m.selectedPacketIndex < len(flow.Packets)-1 {