Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios

This commit is contained in:
Ilya Laktyushin 2021-10-28 16:37:45 +04:00
commit 9f8bd71105
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)