mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
13 lines
398 B
Swift
13 lines
398 B
Swift
import Foundation
|
|
import Postbox
|
|
import SwiftSignalKit
|
|
import TelegramCore
|
|
|
|
func fileInteractiveFetched(account: Account, file: TelegramMediaFile) -> Signal<Void, NoError> {
|
|
return account.postbox.mediaBox.fetchedResource(file.resource)
|
|
}
|
|
|
|
func fileCancelInteractiveFetch(account: Account, file: TelegramMediaFile) {
|
|
account.postbox.mediaBox.cancelInteractiveResourceFetch(file.resource)
|
|
}
|