diff --git a/apps/ios/Shared/Views/Chat/ReverseList.swift b/apps/ios/Shared/Views/Chat/ReverseList.swift index 7a86753fb7..06a842a4a4 100644 --- a/apps/ios/Shared/Views/Chat/ReverseList.swift +++ b/apps/ios/Shared/Views/Chat/ReverseList.swift @@ -492,7 +492,7 @@ class ReverseListSectionModel: ObservableObject { while (!completed) { let it = im.reversedChatItems[i] if itemSection[it.id] == section { - if sectionCount >= ReverseListSectionModel.IDEAL_SECTION_SIZE { + if sectionCount >= ReverseListSectionModel.MAX_SECTION_SIZE { toRemoveIndexes.insert(i) itemSection.removeValue(forKey: it.id) } else {