mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
[WIP] General history loading and topic improvements
This commit is contained in:
@@ -129,13 +129,13 @@ func chatHistoryViewForLocation(_ location: ChatHistoryLocationInput, ignoreMess
|
||||
}
|
||||
}
|
||||
|
||||
let maxIndex = targetIndex + count / 2
|
||||
let minIndex = targetIndex - count / 2
|
||||
let maxIndex = targetIndex + 40
|
||||
let minIndex = targetIndex - 40
|
||||
if minIndex <= 0 && view.holeEarlier {
|
||||
fadeIn = true
|
||||
return .Loading(initialData: combinedInitialData, type: .Generic(type: updateType))
|
||||
}
|
||||
if maxIndex >= targetIndex {
|
||||
if maxIndex >= view.entries.count {
|
||||
if view.holeLater {
|
||||
fadeIn = true
|
||||
return .Loading(initialData: combinedInitialData, type: .Generic(type: updateType))
|
||||
|
||||
Reference in New Issue
Block a user