From 1622fdfa4e798fd419c7f95526385dbab6f49d92 Mon Sep 17 00:00:00 2001 From: Josh Perez <60019601+josh-signal@users.noreply.github.com> Date: Wed, 10 Mar 2021 18:31:30 -0500 Subject: [PATCH] Improve conversation initial load times --- ts/views/conversation_view.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/views/conversation_view.ts b/ts/views/conversation_view.ts index 8d26f35033..555e3c1f8c 100644 --- a/ts/views/conversation_view.ts +++ b/ts/views/conversation_view.ts @@ -1147,7 +1147,7 @@ Whisper.ConversationView = Whisper.View.extend({ } const messages = await getOlderMessagesByConversation(conversationId, { - limit: 500, + limit: 50, MessageCollection: Whisper.MessageCollection, }); @@ -1157,7 +1157,7 @@ Whisper.ConversationView = Whisper.View.extend({ setFocus && metrics.newest ? metrics.newest.id : undefined; // Because our `getOlderMessages` fetch above didn't specify a receivedAt, we got - // the most recent 500 messages in the conversation. If it has a conflict with + // the most recent 50 messages in the conversation. If it has a conflict with // metrics, fetched a bit before, that's likely a race condition. So we tell our // reducer to trust the message set we just fetched for determining if we have // the newest message loaded.