summaryrefslogtreecommitdiff
path: root/ui/ui.go
diff options
context:
space:
mode:
authorHubert Hirtz <hubert@hirtz.pm>2021-09-01 12:37:37 +0200
committerHubert Hirtz <hubert@hirtz.pm>2021-09-01 12:37:37 +0200
commit058532e70a4dbfb476410fb30125b6a7d0d375b0 (patch)
tree6ad6632bddc3a3b0cdca387ee359d30cff1e0cff /ui/ui.go
parentRemove outdated UI tests (diff)
Fetch missed messages on reconnect
just one step closer to proper CHATHISTORY support!! :=D ^v^
Diffstat (limited to 'ui/ui.go')
-rw-r--r--ui/ui.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/ui.go b/ui/ui.go
index 39f936c..8fb6227 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -148,7 +148,7 @@ func (ui *UI) IsAtTop() bool {
return ui.bs.IsAtTop()
}
-func (ui *UI) AddBuffer(title string) int {
+func (ui *UI) AddBuffer(title string) (i int, added bool) {
return ui.bs.Add(title)
}
@@ -161,8 +161,8 @@ func (ui *UI) AddLine(buffer string, notify NotifyType, line Line) {
ui.bs.AddLine(buffer, notify, line)
}
-func (ui *UI) AddLines(buffer string, lines []Line) {
- ui.bs.AddLines(buffer, lines)
+func (ui *UI) AddLines(buffer string, before, after []Line) {
+ ui.bs.AddLines(buffer, before, after)
}
func (ui *UI) JumpBuffer(sub string) bool {