This commit is contained in:
Andrey Blinov
2020-08-15 01:49:26 +07:00
parent 44214089f8
commit 5568860d9f

View File

@@ -36,7 +36,8 @@ open class ChatApi {
public func messages(_ token: String, params: Dictionary<String, Any>, callback: @escaping (NSDictionary?) -> Void) { public func messages(_ token: String, params: Dictionary<String, Any>, callback: @escaping (NSDictionary?) -> Void) {
send(token, "message", params, callback: callback) send(token, "message", params, callback: callback)
} }
public static func getNewMessages(_ token: String, _ clientId: String, callback: @escaping (NSDictionary?) -> Void) { public static func getNewMessages(_ token: String, _ clientId: String, callback: @escaping (NSDictionary?) -> Void) {
let dtFormatter = DateFormatter() let dtFormatter = DateFormatter()
dtFormatter.calendar = Calendar(identifier: Calendar.Identifier.iso8601) dtFormatter.calendar = Calendar(identifier: Calendar.Identifier.iso8601)