commit 6866df0
ptrcnull
·
2022-04-26 20:07:07 +0000 UTC
parent 9bd580f
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.
1 files changed,
+1,
-1
+1,
-1
1@@ -430,7 +430,7 @@ func (bs *BufferList) SetRead(netID, title string, timestamp time.Time) {
2 for i := len(b.lines) - 1; i >= 0; i-- {
3 line := &b.lines[i]
4 if line.Readable {
5- if line.At.After(timestamp) {
6+ if !line.At.After(timestamp) {
7 b.highlights = 0
8 b.unread = false
9 }