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:
@@ -574,6 +574,12 @@ public final class MediaBox {
|
||||
let disposable = MetaDisposable()
|
||||
|
||||
self.dataQueue.async {
|
||||
let paths = self.storePathsForId(resource.id)
|
||||
if let _ = fileSize(paths.complete) {
|
||||
subscriber.putCompletion()
|
||||
return
|
||||
}
|
||||
|
||||
guard let (fileContext, releaseContext) = self.fileContext(for: resource.id) else {
|
||||
subscriber.putCompletion()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user