public void removeUsersFromRoom(String roomJid, List<Integer> userIdsList)
      throws QBResponseException {
    QBDialog dialog = DatabaseManager.getDialogByRoomJid(context, roomJid);

    QBCustomObjectUpdateBuilder requestBuilder = new QBCustomObjectUpdateBuilder();
    requestBuilder.pullAll(com.quickblox.chat.Consts.DIALOG_OCCUPANTS, userIdsList.toArray());
    updateDialog(dialog, requestBuilder);
  }
  public void addUsersToRoom(String dialogId, List<Integer> userIdsList) throws Exception {
    QBDialog dialog = DatabaseManager.getDialogByDialogId(context, dialogId);

    QBCustomObjectUpdateBuilder requestBuilder = new QBCustomObjectUpdateBuilder();
    requestBuilder.push(com.quickblox.chat.Consts.DIALOG_OCCUPANTS, userIdsList.toArray());
    updateDialog(dialog, requestBuilder);

    inviteFriendsToRoom(dialog, userIdsList);
  }