mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-05 04:10:16 +00:00
Merge branch 'master' of https://gitlab.com/peter-iakovlev/telegramcore
This commit is contained in:
commit
5202080b65
@ -276,8 +276,6 @@ final class ChatHistoryPreloadManager {
|
|||||||
switch index.entity {
|
switch index.entity {
|
||||||
case let .peer(peerId):
|
case let .peer(peerId):
|
||||||
key = .messageOfInterestHole(location: .peer(peerId), namespace: Namespaces.Message.Cloud, count: 60)
|
key = .messageOfInterestHole(location: .peer(peerId), namespace: Namespaces.Message.Cloud, count: 60)
|
||||||
/*case let .group(groupId):
|
|
||||||
key = .messageOfInterestHole(location: .group(groupId), namespace: Namespaces.Message.Cloud, count: 60)*/
|
|
||||||
}
|
}
|
||||||
view.disposable.set((self.postbox.combinedView(keys: [key])
|
view.disposable.set((self.postbox.combinedView(keys: [key])
|
||||||
|> deliverOn(self.queue)).start(next: { [weak self] next in
|
|> deliverOn(self.queue)).start(next: { [weak self] next in
|
||||||
|
@ -464,11 +464,7 @@ public class CloudDocumentMediaResource: TelegramCloudMediaResource, TelegramMul
|
|||||||
}
|
}
|
||||||
|
|
||||||
func apiInputLocation(fileReference: Data?) -> Api.InputFileLocation? {
|
func apiInputLocation(fileReference: Data?) -> Api.InputFileLocation? {
|
||||||
if let fileReference = fileReference {
|
return Api.InputFileLocation.inputDocumentFileLocation(id: self.fileId, accessHash: self.accessHash, fileReference: Buffer(data: fileReference ?? Data()), thumbSize: "")
|
||||||
return Api.InputFileLocation.inputDocumentFileLocation(id: self.fileId, accessHash: self.accessHash, fileReference: Buffer(data: fileReference), thumbSize: "")
|
|
||||||
} else {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public init(datacenterId: Int, fileId: Int64, accessHash: Int64, size: Int?, fileReference: Data?, fileName: String?) {
|
public init(datacenterId: Int, fileId: Int64, accessHash: Int64, size: Int?, fileReference: Data?, fileName: String?) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user