diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-12-19 17:03:18 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-12-19 17:03:18 +0200 |
| commit | ff032e5e0769cb33fa9075838b2cac3398e725f8 (patch) | |
| tree | 11c3b78c03539873474fb02aae59e3da49d35159 /internal/client/ui/core/core.go | |
| parent | f58c860d5549046f592790989df1c47bc9c2c1a1 (diff) | |
Implemented client-side message sending
Diffstat (limited to 'internal/client/ui/core/core.go')
| -rw-r--r-- | internal/client/ui/core/core.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/client/ui/core/core.go b/internal/client/ui/core/core.go index 5d87294..5115274 100644 --- a/internal/client/ui/core/core.go +++ b/internal/client/ui/core/core.go @@ -288,9 +288,12 @@ func (m *Model) updateConnected(msg tea.Msg) tea.Cmd { switch m.focus { case FocusNetworkList: m.networkList, cmd = m.networkList.Update(msg) - m.frequencyList.Set(m.networkList.Index()) + 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) case FocusChat: m.chat, cmd = m.chat.Update(msg) } |
