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)