Respond to CR.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-08-23 14:57:02 -04:00
parent 57b76b3411
commit b28a6bab26

View file

@ -2422,6 +2422,7 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) {
NSUInteger targetLength = oldLength;
if (mode == MessagesRangeSizeMode_Truncate) {
// During the initial configuration of the view, we want to truncate the
// range size.
targetLength = MIN(targetLength, (NSUInteger)(kYapDatabasePageSize * kYapDatabaseMaxInitialPageCount));
}