summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-04 12:17:45 -0500
committercitrons <citrons@mondecitronne.com>2025-06-07 16:02:18 -0500
commit988799b3a509b68680a412c2aeaad56eeb53307c (patch)
treec8a55695713faa5ecd9caec710970680754d3296
parentfee79bdc4b0bbc408d3f1f7c6a3abea8f287c058 (diff)
fix join message bug
-rw-r--r--client/channel_window.go6
1 files changed, 5 insertions, 1 deletions
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()