mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Fixes
This commit is contained in:
@@ -8238,7 +8238,6 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
|||||||
} else if let encoded = url.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed), let parsed = URL(string: encoded) {
|
} else if let encoded = url.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed), let parsed = URL(string: encoded) {
|
||||||
parsedUrlValue = parsed
|
parsedUrlValue = parsed
|
||||||
}
|
}
|
||||||
print("parsedUrlValue = \(parsedUrlValue)")
|
|
||||||
let host = parsedUrlValue?.host ?? url
|
let host = parsedUrlValue?.host ?? url
|
||||||
|
|
||||||
let rawHost = (host as NSString).removingPercentEncoding ?? host
|
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: "a"..."z")
|
||||||
latin.insert(charactersIn: "0"..."9")
|
latin.insert(charactersIn: "0"..."9")
|
||||||
var punctuation = CharacterSet()
|
var punctuation = CharacterSet()
|
||||||
punctuation.insert(charactersIn: ".-/+")
|
punctuation.insert(charactersIn: ".-/+_")
|
||||||
var hasLatin = false
|
var hasLatin = false
|
||||||
var hasNonLatin = false
|
var hasNonLatin = false
|
||||||
for c in rawHost {
|
for c in rawHost {
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ func openResolvedUrlImpl(_ resolvedUrl: ResolvedUrl, context: AccountContext, ur
|
|||||||
openPeer(peerId, .chat(textInputState: nil, subject: .message(messageId)))
|
openPeer(peerId, .chat(textInputState: nil, subject: .message(messageId)))
|
||||||
case let .stickerPack(name):
|
case let .stickerPack(name):
|
||||||
dismissInput()
|
dismissInput()
|
||||||
if true {
|
if false {
|
||||||
var mainStickerPack: StickerPackReference?
|
var mainStickerPack: StickerPackReference?
|
||||||
var stickerPacks: [StickerPackReference] = []
|
var stickerPacks: [StickerPackReference] = []
|
||||||
if let message = contentContext as? Message {
|
if let message = contentContext as? Message {
|
||||||
@@ -122,7 +122,7 @@ func openResolvedUrlImpl(_ resolvedUrl: ResolvedUrl, context: AccountContext, ur
|
|||||||
stickerPacks = [.name(name)]
|
stickerPacks = [.name(name)]
|
||||||
}
|
}
|
||||||
if let mainStickerPack = mainStickerPack, !stickerPacks.isEmpty {
|
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)
|
present(controller, nil)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ private final class VisualMediaItemNode: ASDisplayNode {
|
|||||||
let isStreamable = isMediaStreamable(message: item.message, media: file)
|
let isStreamable = isMediaStreamable(message: item.message, media: file)
|
||||||
|
|
||||||
var statusState: RadialStatusNodeState = .none
|
var statusState: RadialStatusNodeState = .none
|
||||||
if isStreamable {
|
if isStreamable || file.isAnimated {
|
||||||
statusState = .none
|
statusState = .none
|
||||||
} else {
|
} else {
|
||||||
switch status {
|
switch status {
|
||||||
|
|||||||
Reference in New Issue
Block a user