无法将用户添加到Quickblox JS

时间:2015-08-19 20:37:27

标签: quickblox

我为JS的QuickBlox聊天示例添加了一项功能,允许在现有聊天中添加新用户

function addUsers(){

var curDlgId = currentDialog._id ; 
var curDlgName = currentDialog.name; 


$('.users_form.active').each(function(index) {
    users_ids[index] = $(this).attr('id');    
});


QB.chat.dialog.update(curDlgId,{ push_all : {users_ids}}, onAddUsersCompleted);

}

function onAddUsersCompleted(error,b,c){

}

但我在onAddUsersCompleted回调中收到错误:

error = Object {code:403,status:" error",message:" Forbidden",detail:" {" errors":[ "您没有相应的权限来执行此操作"]}"}

什么错了?

0 个答案:

没有答案