[英]How can we store history for image or content files in chat room in quickblox iOS SDK?
[英]Can we create multiple ChatDialogs for same opponent? (In 1-1 Quickblox chat)
下面是我的代碼
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 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.