mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
Fixed 3d touch preview for links with Arabic in them
This commit is contained in:
parent
1d2c593944
commit
f36cd1050b
@ -6642,7 +6642,7 @@ public final class ChatController: TelegramBaseController, GalleryHiddenMediaTar
|
|||||||
|
|
||||||
let targetRect = node.view.convert(rect, to: sourceView)
|
let targetRect = node.view.convert(rect, to: sourceView)
|
||||||
let sourceRect = CGRect(origin: CGPoint(x: floor(targetRect.midX), y: floor(targetRect.midY)), size: CGSize(width: 1.0, height: 1.0))
|
let sourceRect = CGRect(origin: CGPoint(x: floor(targetRect.midX), y: floor(targetRect.midY)), size: CGSize(width: 1.0, height: 1.0))
|
||||||
if let parsedUrl = URL(string: string) {
|
if let parsedUrl = parsedUrlValue {
|
||||||
if parsedUrl.scheme == "http" || parsedUrl.scheme == "https" {
|
if parsedUrl.scheme == "http" || parsedUrl.scheme == "https" {
|
||||||
if #available(iOSApplicationExtension 9.0, iOS 9.0, *) {
|
if #available(iOSApplicationExtension 9.0, iOS 9.0, *) {
|
||||||
let controller = SFSafariViewController(url: parsedUrl)
|
let controller = SFSafariViewController(url: parsedUrl)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user