summaryrefslogtreecommitdiff
path: root/internal/client
diff options
context:
space:
mode:
Diffstat (limited to 'internal/client')
-rw-r--r--internal/client/ui/core/chat/chat.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/client/ui/core/chat/chat.go b/internal/client/ui/core/chat/chat.go
index 3154c01..dac4937 100644
--- a/internal/client/ui/core/chat/chat.go
+++ b/internal/client/ui/core/chat/chat.go
@@ -286,6 +286,9 @@ func (m *Model) RestoreAfterSwitch() tea.Cmd {
m.vi.SetString(val.IncompleteMessage)
m.offset = val.Offset
m.maxMessagesHeight = val.MaxHeight
+
+ // Don't ask for messages if you already visited this frequency
+ return nil
}
return gateway.Send(&packet.RequestMessages{
ReceiverID: nil,