diff --git a/submodules/GalleryUI/Sources/Items/ChatImageGalleryItem.swift b/submodules/GalleryUI/Sources/Items/ChatImageGalleryItem.swift index 3b14a1891e..c74a3a6c48 100644 --- a/submodules/GalleryUI/Sources/Items/ChatImageGalleryItem.swift +++ b/submodules/GalleryUI/Sources/Items/ChatImageGalleryItem.swift @@ -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 diff --git a/submodules/TelegramCore/Sources/Network/FetchHttpResource.swift b/submodules/TelegramCore/Sources/Network/FetchHttpResource.swift index d5588aeb3e..64f7ed2e91 100644 --- a/submodules/TelegramCore/Sources/Network/FetchHttpResource.swift +++ b/submodules/TelegramCore/Sources/Network/FetchHttpResource.swift @@ -4,7 +4,7 @@ import SwiftSignalKit import MtProtoKit public func fetchHttpResource(url: String) -> Signal { - 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)