From e42291ed436f7277d716ffa2bbb002bd21c6ee9b Mon Sep 17 00:00:00 2001 From: overtake <> Date: Sun, 5 Apr 2020 20:44:28 +0400 Subject: [PATCH] no message --- submodules/Postbox/Sources/ChatListViewState.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)