diff --git a/submodules/TelegramUI/Sources/ChatController.swift b/submodules/TelegramUI/Sources/ChatController.swift index 47e5c9c59d..abbff3f33c 100644 --- a/submodules/TelegramUI/Sources/ChatController.swift +++ b/submodules/TelegramUI/Sources/ChatController.swift @@ -8238,7 +8238,6 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G } else if let encoded = url.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed), let parsed = URL(string: encoded) { parsedUrlValue = parsed } - print("parsedUrlValue = \(parsedUrlValue)") let host = parsedUrlValue?.host ?? url let rawHost = (host as NSString).removingPercentEncoding ?? host @@ -8247,7 +8246,7 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G latin.insert(charactersIn: "a"..."z") latin.insert(charactersIn: "0"..."9") var punctuation = CharacterSet() - punctuation.insert(charactersIn: ".-/+") + punctuation.insert(charactersIn: ".-/+_") var hasLatin = false var hasNonLatin = false for c in rawHost { diff --git a/submodules/TelegramUI/Sources/OpenResolvedUrl.swift b/submodules/TelegramUI/Sources/OpenResolvedUrl.swift index 6a3739c596..a5fdc59cf0 100644 --- a/submodules/TelegramUI/Sources/OpenResolvedUrl.swift +++ b/submodules/TelegramUI/Sources/OpenResolvedUrl.swift @@ -91,7 +91,7 @@ func openResolvedUrlImpl(_ resolvedUrl: ResolvedUrl, context: AccountContext, ur openPeer(peerId, .chat(textInputState: nil, subject: .message(messageId))) case let .stickerPack(name): dismissInput() - if true { + if false { var mainStickerPack: StickerPackReference? var stickerPacks: [StickerPackReference] = [] if let message = contentContext as? Message { @@ -122,7 +122,7 @@ func openResolvedUrlImpl(_ resolvedUrl: ResolvedUrl, context: AccountContext, ur stickerPacks = [.name(name)] } if let mainStickerPack = mainStickerPack, !stickerPacks.isEmpty { - let controller = StickerPackScreen(context: context, mainStickerPack: mainStickerPack, stickerPacks: stickerPacks, sendSticker: sendSticker) + let controller = StickerPackScreen(context: context, mainStickerPack: mainStickerPack, stickerPacks: stickerPacks, parentNavigationController: navigationController, sendSticker: sendSticker) present(controller, nil) } } else { diff --git a/submodules/TelegramUI/Sources/PeerInfo/Panes/PeerInfoVisualMediaPaneNode.swift b/submodules/TelegramUI/Sources/PeerInfo/Panes/PeerInfoVisualMediaPaneNode.swift index 9f30b3942a..f71a105a68 100644 --- a/submodules/TelegramUI/Sources/PeerInfo/Panes/PeerInfoVisualMediaPaneNode.swift +++ b/submodules/TelegramUI/Sources/PeerInfo/Panes/PeerInfoVisualMediaPaneNode.swift @@ -235,7 +235,7 @@ private final class VisualMediaItemNode: ASDisplayNode { let isStreamable = isMediaStreamable(message: item.message, media: file) var statusState: RadialStatusNodeState = .none - if isStreamable { + if isStreamable || file.isAnimated { statusState = .none } else { switch status {