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

View File

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