Saved message search

This commit is contained in:
Isaac
2024-01-28 00:15:21 +01:00
parent 960d968e0f
commit ca4eb2cb69
21 changed files with 439 additions and 68 deletions

View File

@@ -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)