diff --git a/OnlineChatSdk/Classes/ChatController.swift b/OnlineChatSdk/Classes/ChatController.swift index 34964d5..fa60993 100644 --- a/OnlineChatSdk/Classes/ChatController.swift +++ b/OnlineChatSdk/Classes/ChatController.swift @@ -7,7 +7,7 @@ // import UIKit -import WebKit +@preconcurrency import WebKit import AVFoundation @available(iOS 13.0, *) @@ -514,7 +514,7 @@ open class ChatController: UIViewController, WKNavigationDelegate, WKScriptMessa } open func onLinkPressed(url: URL) { - UIApplication.shared.openURL(url) + UIApplication.shared.open(url, options: [:], completionHandler: nil) } open func playSound(_ systemSoundId: SystemSoundID) { diff --git a/OnlineChatSdk/Classes/ChatDateFormatter.swift b/OnlineChatSdk/Classes/ChatDateFormatter.swift index b8e4d05..ad0aa9e 100644 --- a/OnlineChatSdk/Classes/ChatDateFormatter.swift +++ b/OnlineChatSdk/Classes/ChatDateFormatter.swift @@ -1,6 +1,6 @@ import Foundation -class ChatDateFormatter : DateFormatter { +class ChatDateFormatter : DateFormatter, @unchecked Sendable { override init() { super.init()