From dcc607cf0291f7b26ea762f138fcc384a1f39295 Mon Sep 17 00:00:00 2001 From: ayn2op Date: Mon, 10 Nov 2025 16:33:25 -0500 Subject: [PATCH] refactor: remove extraneous accessor --- cmd/message_input.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cmd/message_input.go b/cmd/message_input.go index 6af4c31..5529eff 100644 --- a/cmd/message_input.go +++ b/cmd/message_input.go @@ -73,6 +73,10 @@ func newMessageInput(cfg *config.Config) *messageInput { mi.Box = ui.ConfigureBox(mi.Box, &cfg.Theme) mi.SetInputCapture(mi.onInputCapture) + mi. + SetPlaceholder("Select a channel to start chatting"). + SetPlaceholderStyle(tcell.StyleDefault.Dim(true)). + SetDisabled(true) mi.mentionsList.Box = ui.ConfigureBox(mi.mentionsList.Box, &mi.cfg.Theme) mi.mentionsList. @@ -84,11 +88,6 @@ func newMessageInput(cfg *config.Config) *messageInput { b.BottomLeft, b.BottomRight = b.BottomT, b.BottomT mi.mentionsList.SetBorderSet(b) - mi.TextArea. - SetPlaceholder("Select a channel to start chatting"). - SetPlaceholderStyle(tcell.StyleDefault.Dim(true)). - SetDisabled(true) - return mi }