From 988799b3a509b68680a412c2aeaad56eeb53307c Mon Sep 17 00:00:00 2001 From: citrons Date: Wed, 4 Jun 2025 12:17:45 -0500 Subject: fix join message bug --- client/channel_window.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/channel_window.go b/client/channel_window.go index b3788da..a9a403e 100644 --- a/client/channel_window.go +++ b/client/channel_window.go @@ -278,7 +278,11 @@ func (m channelMsg) Show(odd bool) { tui.Push("", tui.Box { Width: tui.TextSize, Height: tui.TextSize, NoWrap: true, }) - tui.Text("<- ", &tui.Style {Fg: tui.BrightBlack, Bg: bg}) + if m.Kind == "join" { + tui.Text("-> ", &tui.Style {Fg: tui.BrightBlack, Bg: bg}) + } else { + tui.Text("<- ", &tui.Style {Fg: tui.BrightBlack, Bg: bg}) + } tui.Text(m.Kind, &tui.Style {Fg: tui.Blue, Bg: bg}) tui.Text(": ", &tui.Style {Fg: tui.BrightBlack, Bg: bg}) tui.Pop() -- cgit v1.2.3