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