From 6d8f281fdc9413646b8ee386ea604ea00660e3cb Mon Sep 17 00:00:00 2001 From: ayn2op Date: Sun, 23 Nov 2025 14:04:21 -0500 Subject: [PATCH] refactor(cmd): rename (*chatView).init to (*chatView).buildLayout --- cmd/chatview.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/chatview.go b/cmd/chatview.go index 567ba24..4f7c971 100644 --- a/cmd/chatview.go +++ b/cmd/chatview.go @@ -41,11 +41,11 @@ func newChatView(app *tview.Application, cfg *config.Config) *chatView { cv.SetInputCapture(cv.onInputCapture) - cv.init() + cv.buildLayout() return cv } -func (cv *chatView) init() { +func (cv *chatView) buildLayout() { cv.Clear() cv.mainFlex.Clear() @@ -69,7 +69,7 @@ func (cv *chatView) toggleGuildsTree() { cv.app.SetFocus(cv.mainFlex) } } else { - cv.init() + cv.buildLayout() cv.app.SetFocus(cv.guildsTree) } }