下面是我的代码
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。
最佳答案
与同一个对手创建许多1-1对话框是不可能的
为此,请使用类型 QBChatDialogType.Group 。