mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-31 15:37:01 +00:00
Fix cover loading
This commit is contained in:
parent
56d0b129d4
commit
f0b53b30a7
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user