~taiite/senpai

6866df0720d24a23ecc11b4cb366ad509b2b20d7 — ptrcnull 29 days ago 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 insertions(+), 1 deletions(-)

M ui/buffers.go
M ui/buffers.go => ui/buffers.go +1 -1
@@ 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
			}