From 42e5a40b7cd60cca1e0ada3f7981011d4283f2df Mon Sep 17 00:00:00 2001 From: Hubert Hirtz Date: Mon, 6 Dec 2021 13:00:17 +0100 Subject: Bump history batch limits Initial history request: 200 -> 500 Infinite scroll request: 100 -> 200 Reconnect request: 200 -> 1000 --- app.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app.go b/app.go index 22d5364..73039b8 100644 --- a/app.go +++ b/app.go @@ -562,7 +562,7 @@ func (app *App) requestHistory() { t = bound.first } s.NewHistoryRequest(buffer). - WithLimit(100). + WithLimit(200). Before(t) } } @@ -656,11 +656,11 @@ func (app *App) handleIRCEvent(netID string, ev interface{}) { bounds, ok := app.messageBounds[boundKey{netID, ev.Channel}] if added || !ok { s.NewHistoryRequest(ev.Channel). - WithLimit(200). + WithLimit(500). Before(msg.TimeOrNow()) } else { s.NewHistoryRequest(ev.Channel). - WithLimit(200). + WithLimit(1000). After(bounds.last) } if ev.Requested { @@ -728,7 +728,7 @@ func (app *App) handleIRCEvent(netID string, ev interface{}) { if buffer != "" && !s.IsChannel(buffer) { if _, added := app.win.AddBuffer(netID, "", buffer); added { s.NewHistoryRequest(buffer). - WithLimit(200). + WithLimit(500). Before(msg.TimeOrNow()) } } @@ -753,7 +753,7 @@ func (app *App) handleIRCEvent(netID string, ev interface{}) { // (precision of the time tag) to include that last message. last = last.Add(1 * time.Millisecond) s.NewHistoryRequest(target). - WithLimit(200). + WithLimit(500). Before(last) } case irc.HistoryEvent: -- cgit v1.2.3