diff options
author | Hubert Hirtz <hubert@hirtz.pm> | 2021-12-06 13:00:17 +0100 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-12-06 13:01:52 +0100 |
commit | 42e5a40b7cd60cca1e0ada3f7981011d4283f2df (patch) | |
tree | 196120df13ce6734229533cf0bbea0061926e785 /app.go | |
parent | Do not mark the buffer as unread on MODE (diff) |
Bump history batch limits
Initial history request: 200 -> 500
Infinite scroll request: 100 -> 200
Reconnect request: 200 -> 1000
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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: |