From 1b834978dfaceddf44229b71a77089df5c4b28b7 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Thu, 15 Apr 2021 10:01:13 +1000 Subject: [PATCH] Fix crash --- Session/Conversations/ConversationViewModel.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Session/Conversations/ConversationViewModel.m b/Session/Conversations/ConversationViewModel.m index b893fe7f5..2b8952cca 100644 --- a/Session/Conversations/ConversationViewModel.m +++ b/Session/Conversations/ConversationViewModel.m @@ -170,10 +170,10 @@ NS_ASSUME_NONNULL_BEGIN // // PERF: we could do less messages on shorter (older, slower) devices // PERF: we could cache the cell height, since some messages will be much taller. -static const int kYapDatabasePageSize = 100; +static const int kYapDatabasePageSize = 25000; // Never show more than n messages in conversation view when user arrives. -static const int kConversationInitialMaxRangeSize = 100; +static const int kConversationInitialMaxRangeSize = 25000; // Never show more than n messages in conversation view at a time. static const int kYapDatabaseRangeMaxLength = 25000;