From b46a755bfc2afbce7276a2ce075d956ab7dc5b01 Mon Sep 17 00:00:00 2001 From: delthas Date: Thu, 10 Feb 2022 15:44:05 +0100 Subject: Add support for the soju.im/read capability and READ command See: https://github.com/emersion/soju/blob/c7f0634ec8ee94425547b159bc36705582151012/doc/read.md --- ui/ui.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ui/ui.go') diff --git a/ui/ui.go b/ui/ui.go index 750644c..9f0b13d 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -3,6 +3,7 @@ package ui import ( "strings" "sync/atomic" + "time" "git.sr.ht/~taiite/senpai/irc" @@ -236,6 +237,14 @@ func (ui *UI) SetTopic(netID, buffer string, topic string) { ui.bs.SetTopic(netID, buffer, topic) } +func (ui *UI) SetRead(netID, buffer string, timestamp time.Time) { + ui.bs.SetRead(netID, buffer, timestamp) +} + +func (ui *UI) UpdateRead() (netID, buffer string, timestamp time.Time) { + return ui.bs.UpdateRead() +} + func (ui *UI) SetStatus(status string) { ui.status = status } -- cgit v1.2.3