[英](quickblox) How to add people to a chat dialog?
I am implementing a group chat but i can add people 我正在进行群聊,但我可以加人
Here is my code 这是我的代码
var dialog_toupdate = QBChatDialog(dialogID: dialog.ID)
println( dialog.ID )
var selecteduser = ["the id"]
dialog_toupdate.setPushOccupantsIDs(selecteduser)
QBRequest.updateDialog(dialog_toupdate, successBlock: { (response, dialog) -> Void in
//some staff
}, errorBlock: { (errr:QBResponse!) -> Void in
println(errr.error.description)
})
and i get this error: 我得到这个错误:
Error reasons: code = "null" message = "Resource not found" 错误原因:代码=“空”消息=“找不到资源”
Please update to the latest QB SDK v2.3.0.4 请更新到最新的QB SDK v2.3.0.4
In order to send messages from QBChatDialog instance that you have locally created you should do the following: 为了从本地创建的QBChatDialog实例发送消息,您应该执行以下操作:
1-1 chat: 1-1聊天:
Group chat 群聊
Without roomJID that you have received from a server you can not send messages 没有从服务器收到的roomJID,就无法发送消息
Please note : You can not convert 1-1 chat into group chat. 请注意 :您不能将1-1聊天转换为群聊。 You should create new group chat with occupants. 您应该与乘员创建新的群聊。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.