drop items when scrolling up

This commit is contained in:
Diogo
2024-11-07 23:51:56 +00:00
parent 9974460dcf
commit fbddf1d34e
2 changed files with 14 additions and 4 deletions
+3 -3
View File
@@ -318,9 +318,9 @@ private func apiChatsResponse(_ r: ChatResponse) throws -> [ChatData] {
throw r
}
let loadItemsPerPage = 50
let preloadItem = 8
let idealChatListSize = 500
let loadItemsPerPage = 100
let preloadItem = 25
let idealChatListSize = 300
func apiGetChat(type: ChatType, id: Int64, search: String = "") async throws -> (Chat, Int?) {
let r = await chatSendCmd(.apiGetChat(type: type, id: id, pagination: .initial(count: loadItemsPerPage), search: search))