This commit is contained in:
bekannax
2024-12-03 19:49:44 +07:00
parent 5d411e60c8
commit c1223c6acc

View File

@@ -32,6 +32,7 @@ open class ChatController: UIViewController, WKNavigationDelegate, WKScriptMessa
private static let method_destroy = "destroy" private static let method_destroy = "destroy"
private static let method_pageLoaded = "pageLoaded" private static let method_pageLoaded = "pageLoaded"
public var chatView: WKWebView! public var chatView: WKWebView!
private var callJs: Array<String>! private var callJs: Array<String>!
private var didFinish: Bool = false private var didFinish: Bool = false
@@ -40,6 +41,7 @@ open class ChatController: UIViewController, WKNavigationDelegate, WKScriptMessa
private var css: String = "" private var css: String = ""
private var alertLoading: UIAlertController? private var alertLoading: UIAlertController?
private static func getUnreadedMessagesCallback(_ result: NSDictionary) -> NSDictionary { private static func getUnreadedMessagesCallback(_ result: NSDictionary) -> NSDictionary {
let resultWrapper = ChatApiMessagesWrapper(result) let resultWrapper = ChatApiMessagesWrapper(result)
if resultWrapper.getMessages().count == 0 { if resultWrapper.getMessages().count == 0 {