From 13a76f6a0ca3544b8e6a767298e30f14070b14c4 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 28 Apr 2026 17:38:42 +0100 Subject: [PATCH] reduce msgs per page to 20 --- src/state/messages/convo/agent.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/state/messages/convo/agent.ts b/src/state/messages/convo/agent.ts index 059e2ced5a..4892fb2c9c 100644 --- a/src/state/messages/convo/agent.ts +++ b/src/state/messages/convo/agent.ts @@ -37,6 +37,8 @@ import {type MessagesEventBusError} from '#/state/messages/events/types' import {logger} from '#/state/messages/logger' import {IS_NATIVE} from '#/env' +const MESSAGES_PER_PAGE = IS_NATIVE ? 20 : 60 + export function isConvoItemMessage( item: ConvoItem, ): item is ConvoItem & {type: 'message'} { @@ -543,7 +545,7 @@ export class Convo { { cursor: nextCursor, convoId: this.convoId, - limit: IS_NATIVE ? 30 : 60, + limit: MESSAGES_PER_PAGE, }, {headers: DM_SERVICE_HEADERS}, ) @@ -571,7 +573,7 @@ export class Convo { * If the response contained fewer messages than the limit, we know * there are no more pages, regardless of whether a cursor was returned. */ - if (messages.length < (IS_NATIVE ? 30 : 60)) { + if (messages.length < MESSAGES_PER_PAGE) { this.oldestRev = null }