From 6866df0720d24a23ecc11b4cb366ad509b2b20d7 Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Tue, 26 Apr 2022 22:07:07 +0200 Subject: [PATCH] Handle IRC read events correctly It should mark the buffer as read if the last message was before or at the "read" event, not after. --- ui/buffers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/buffers.go b/ui/buffers.go index b94e21a..db2a462 100644 --- a/ui/buffers.go +++ b/ui/buffers.go @@ -430,7 +430,7 @@ func (bs *BufferList) SetRead(netID, title string, timestamp time.Time) { for i := len(b.lines) - 1; i >= 0; i-- { line := &b.lines[i] if line.Readable { - if line.At.After(timestamp) { + if !line.At.After(timestamp) { b.highlights = 0 b.unread = false } -- 2.34.2