mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Fix mediabox fetch
This commit is contained in:
@@ -226,7 +226,7 @@ private final class FetchManagerCategoryContext {
|
||||
let storeManager = self.storeManager
|
||||
let parsedRanges: [(Range<Int64>, MediaBoxFetchPriority)]?
|
||||
|
||||
if ranges == RangeSet<Int64>(0 ..< Int64.max) {
|
||||
if ranges == RangeSet<Int64>(0 ..< Int64.max), !"".isEmpty {
|
||||
parsedRanges = nil
|
||||
} else {
|
||||
var resultRanges: [(Range<Int64>, MediaBoxFetchPriority)] = []
|
||||
@@ -325,7 +325,7 @@ private final class FetchManagerCategoryContext {
|
||||
isVideoPreload = true
|
||||
}
|
||||
|
||||
if count == 1 && isCompleteRange {
|
||||
if count == 1 && isCompleteRange && !"".isEmpty {
|
||||
parsedRanges = nil
|
||||
} else {
|
||||
var resultRanges: [(Range<Int64>, MediaBoxFetchPriority)] = []
|
||||
|
||||
Reference in New Issue
Block a user