summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorHubert Hirtz <hubert@hirtz.pm>2021-09-03 11:22:04 +0200
committerHubert Hirtz <hubert@hirtz.pm>2021-09-03 11:22:04 +0200
commitdc01205670a6e5dd5eee54b3e3fd07534926f984 (patch)
tree7f42918d453e9e21f3183c99d0c9f9cfaa0a7b65 /ui
parentDon't show the member list by default (diff)
Use messageBounds for infinite scroll CHATHISTORY requests
Diffstat (limited to '')
-rw-r--r--ui/buffers.go8
-rw-r--r--ui/ui.go5
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 {
diff --git a/ui/ui.go b/ui/ui.go
index 8bab402..99eac48 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -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