diff options
author | Hubert Hirtz <hubert@hirtz.pm> | 2021-09-01 12:37:37 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-09-01 12:37:37 +0200 |
commit | 058532e70a4dbfb476410fb30125b6a7d0d375b0 (patch) | |
tree | 6ad6632bddc3a3b0cdca387ee359d30cff1e0cff /ui/ui.go | |
parent | Remove 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.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 { |