mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
9 lines
367 B
Swift
9 lines
367 B
Swift
import Foundation
|
|
import SyncCore
|
|
|
|
extension SecretChatFileReference {
|
|
func resource(key: SecretFileEncryptionKey, decryptedSize: Int32) -> SecretFileMediaResource {
|
|
return SecretFileMediaResource(fileId: self.id, accessHash: self.accessHash, containerSize: self.size, decryptedSize: decryptedSize, datacenterId: Int(self.datacenterId), key: key)
|
|
}
|
|
}
|