mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Refactor IndexSet to RangeSet
This commit is contained in:
@@ -199,7 +199,7 @@ public final class DirectMediaImageCache {
|
||||
).start()
|
||||
|
||||
let dataSignal: Signal<Data?, NoError>
|
||||
if resourceSizeLimit < Int(Int64.max) {
|
||||
if resourceSizeLimit < Int64.max {
|
||||
dataSignal = self.account.postbox.mediaBox.resourceData(resource.resource, size: resourceSizeLimit, in: 0 ..< resourceSizeLimit)
|
||||
|> map { data, _ -> Data? in
|
||||
return data
|
||||
|
||||
Reference in New Issue
Block a user