summaryrefslogtreecommitdiff
path: root/internal/client/ui/core/core.go
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-12-21 16:21:16 +0200
committerKyren223 <Kyren223@proton.me>2024-12-21 16:21:16 +0200
commit4db087dbe44795a895febef14e8c7634f84719b5 (patch)
tree99e1369eb8357e404d6eb5039859ef302f6b77da /internal/client/ui/core/core.go
parentcee4c74bf58b469eb48dbbf71c8d8fe43caa0bc8 (diff)
Selected message automatically diselects itself when switching frequency
Diffstat (limited to 'internal/client/ui/core/core.go')
-rw-r--r--internal/client/ui/core/core.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/client/ui/core/core.go b/internal/client/ui/core/core.go
index 4c3db77..11da7ef 100644
--- a/internal/client/ui/core/core.go
+++ b/internal/client/ui/core/core.go
@@ -313,11 +313,9 @@ func (m *Model) updateConnected(msg tea.Msg) tea.Cmd {
case FocusNetworkList:
m.networkList, cmd = m.networkList.Update(msg)
m.frequencyList.SetNetworkIndex(m.networkList.Index())
- m.chat.SetNetworkIndex(m.networkList.Index())
case FocusFrequencyList:
m.frequencyList, cmd = m.frequencyList.Update(msg)
- index := m.frequencyList.Index()
- m.chat.Set(nil, &index)
+ m.chat.SetFrequency(m.networkList.Index(), m.frequencyList.Index())
case FocusChat:
m.chat, cmd = m.chat.Update(msg)
}