diff options
author | Hubert Hirtz <hubert@hirtz.pm> | 2021-09-03 11:22:04 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-09-03 11:22:04 +0200 |
commit | dc01205670a6e5dd5eee54b3e3fd07534926f984 (patch) | |
tree | 7f42918d453e9e21f3183c99d0c9f9cfaa0a7b65 /ui | |
parent | Don't show the member list by default (diff) |
Use messageBounds for infinite scroll CHATHISTORY requests
Diffstat (limited to '')
-rw-r--r-- | ui/buffers.go | 8 | ||||
-rw-r--r-- | ui/ui.go | 5 |
2 files changed, 0 insertions, 13 deletions
diff --git a/ui/buffers.go b/ui/buffers.go index b2f0930..4ea2293 100644 --- a/ui/buffers.go +++ b/ui/buffers.go @@ -319,14 +319,6 @@ func (bs *BufferList) Current() (title string) { return bs.list[bs.current].title } -func (bs *BufferList) CurrentOldestTime() (t *time.Time) { - ls := bs.list[bs.current].lines - if 0 < len(ls) { - t = &ls[0].At - } - return t -} - func (bs *BufferList) ScrollUp(n int) { b := &bs.list[bs.current] if b.isAtTop { @@ -3,7 +3,6 @@ package ui import ( "strings" "sync/atomic" - "time" "git.sr.ht/~taiite/senpai/irc" @@ -87,10 +86,6 @@ func (ui *UI) CurrentBuffer() string { return ui.bs.Current() } -func (ui *UI) CurrentBufferOldestTime() (t *time.Time) { - return ui.bs.CurrentOldestTime() -} - func (ui *UI) NextBuffer() { ui.bs.Next() ui.memberOffset = 0 |