以下是我的代码
var qbChatDialog = QBChatDialog()
qbChatDialog.occupantIDs = [strOpponentQuickbloxID]
qbChatDialog.type = QBChatDialogType.Private
qbChatDialog.data = ["class_name": "HQCustomClass", "game_id": strGameID]
//qbChatDialog.name = "\(strGameID)Holy" //Can we use this field in 1-1 chat?
//Create Dialog
QBRequest.createDialog(qbChatDialog,
successBlock: { (qbResponse, newDialog) -> Void in
println("***** New Dialog \(newDialog)*******\n\n\n\n")
},
errorBlock: { (qbErrorResponse) -> Void in
println("***** Dialog Error \(qbErrorResponse)*******\n\n\n\n")
})
始终获得相同的Quickblox ChatDialog。
答案 0 :(得分:3)
用同一个对手创建很多1-1对话
是不可能的为此使用 QBChatDialogType.Group 类型。