Fix cover loading

This commit is contained in:
Ali 2021-10-28 15:19:06 +04:00
parent 56d0b129d4
commit f0b53b30a7
2 changed files with 2 additions and 1 deletions

View File

@ -209,6 +209,7 @@ final class ChatImageGalleryItemNode: ZoomableContentGalleryItemNode {
self.context = context
self.imageNode = TransformImageNode()
self.imageNode.contentAnimations = .subsequentUpdates
self.footerContentNode = ChatItemGalleryFooterContentNode(context: context, presentationData: presentationData, present: present)
self.footerContentNode.performAction = performAction
self.footerContentNode.openActionOptions = openActionOptions

View File

@ -4,7 +4,7 @@ import SwiftSignalKit
import MtProtoKit
public func fetchHttpResource(url: String) -> Signal<MediaResourceDataFetchResult, MediaResourceDataFetchError> {
if let url = URL(string: url) {
if let urlString = url.addingPercentEncoding(withAllowedCharacters: CharacterSet.urlQueryAllowed), let url = URL(string: urlString) {
let signal = MTHttpRequestOperation.data(forHttpUrl: url)!
return Signal { subscriber in
subscriber.putNext(.reset)