ios - Can we create multiple ChatDialogs for same opponent? (In 1-1 Quickblox chat) -
below code
var qbchatdialog = qbchatdialog() qbchatdialog.occupantids = [stropponentquickbloxid] qbchatdialog.type = qbchatdialogtype.private qbchatdialog.data = ["class_name": "hqcustomclass", "game_id": strgameid] //qbchatdialog.name = "\(strgameid)holy" //can use 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") })
always getting same quickblox chatdialog.
it's impossible create many 1-1 dialogs same opponent
use type qbchatdialogtype.group this.
Comments
Post a Comment