mirror of
https://github.com/hub-team/OnlineChatSdk-SwiftPM.git
synced 2026-04-15 09:03:05 +00:00
update
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user