mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Saved message search
This commit is contained in:
@@ -110,7 +110,7 @@ private extension MessageHistoryInput {
|
||||
assert(Set(items.map({ $0.stableId })).count == items.count)
|
||||
|
||||
if items.count > limit {
|
||||
let overLimit = limit - items.count
|
||||
let overLimit = items.count - limit
|
||||
switch direction {
|
||||
case .lowToHigh:
|
||||
items.removeFirst(overLimit)
|
||||
|
||||
Reference in New Issue
Block a user