mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
fix chat list
This commit is contained in:
parent
df46437676
commit
f2cc0bb423
@ -834,7 +834,7 @@ private final class ChatListViewSpaceState {
|
||||
}
|
||||
}
|
||||
|
||||
if insertionIndex == 0 && self.orderedEntries.lowerOrAtAnchor.count >= self.halfLimit {
|
||||
if insertionIndex == 0 {
|
||||
return false
|
||||
}
|
||||
self.orderedEntries.insertLowerOrAtAnchorAtArrayIndex(insertionIndex, value: entry)
|
||||
@ -853,7 +853,7 @@ private final class ChatListViewSpaceState {
|
||||
}
|
||||
}
|
||||
|
||||
if insertionIndex == self.orderedEntries.higherThanAnchor.count && self.orderedEntries.higherThanAnchor.count >= self.halfLimit {
|
||||
if insertionIndex == self.orderedEntries.higherThanAnchor.count {
|
||||
return false
|
||||
}
|
||||
self.orderedEntries.insertHigherThanAnchorAtArrayIndex(insertionIndex, value: entry)
|
||||
|
Loading…
x
Reference in New Issue
Block a user