diff --git a/submodules/Postbox/Sources/ChatListViewState.swift b/submodules/Postbox/Sources/ChatListViewState.swift index b8f6ad88f4..5772d42d35 100644 --- a/submodules/Postbox/Sources/ChatListViewState.swift +++ b/submodules/Postbox/Sources/ChatListViewState.swift @@ -865,7 +865,7 @@ private final class ChatListViewSpaceState { } } - if insertionIndex == self.orderedEntries.higherThanAnchor.count - 1 { + if insertionIndex == self.orderedEntries.higherThanAnchor.count { return false } self.orderedEntries.insertHigherThanAnchorAtArrayIndex(insertionIndex, value: entry)