mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Fix mediabox fetch
This commit is contained in:
parent
7a73e1c8d6
commit
1fa66aad9f
6 changed files with 16 additions and 3 deletions
|
|
@ -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)] = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue