From 2c7bc6ac7a8adcb591a975fbc3ab3abe47fa99fa Mon Sep 17 00:00:00 2001 From: delthas Date: Wed, 14 Jul 2021 00:13:46 +0200 Subject: Add notify types for fine-grained control of unread/highlight state Namely, we want the unread light to show up only on actual messages, not commands etc. This opens the way for not showing an unread light when printing topic on join. --- ui/ui.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/ui.go') diff --git a/ui/ui.go b/ui/ui.go index 03a0aee..ef8fea6 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -136,8 +136,8 @@ func (ui *UI) RemoveBuffer(title string) { _ = ui.bs.Remove(title) } -func (ui *UI) AddLine(buffer string, highlight bool, line Line) { - ui.bs.AddLine(buffer, highlight, line) +func (ui *UI) AddLine(buffer string, notify NotifyType, line Line) { + ui.bs.AddLine(buffer, notify, line) } func (ui *UI) AddLines(buffer string, lines []Line) { -- cgit v1.2.3