From f52b18cd76ccaad0937e46424cb85be50c46a9e1 Mon Sep 17 00:00:00 2001 From: ayn2op Date: Thu, 18 Dec 2025 14:03:40 -0500 Subject: [PATCH] fix(messages_list): check if a channel is selected before selection --- cmd/messages_list.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/messages_list.go b/cmd/messages_list.go index e1ada91..da81391 100644 --- a/cmd/messages_list.go +++ b/cmd/messages_list.go @@ -296,6 +296,10 @@ func (ml *messagesList) onInputCapture(event *tcell.EventKey) *tcell.EventKey { } func (ml *messagesList) _select(name string) { + if app.chatView.selectedChannel == nil { + return + } + ms, err := discordState.Cabinet.Messages(app.chatView.selectedChannel.ID) if err != nil { slog.Error("failed to get messages", "err", err, "channel_id", app.chatView.selectedChannel.ID)