docs: function setupDialogInfoPopup(occupantsIds, name) {
  
    // show name
    $('#dialog-name-input').val(name);
  
    // show occupants
    var logins = [];
    occupantsIds.forEach(function(item, index) {
      login = getUserLoginById(item);
      logins[index] = login;
    });
    $('#all_occupants').text('');
    $('#all_occupants').append('<b>Occupants: </b>'+logins.join(', '));
  
    // show type
    //
    // private
    if (currentDialog.type == 3) {
      $('.dialog-type-info').text('').append('<b>Dialog type: </b>privat chat');
      $('.new-info').hide();
      $('.push').hide();
      $('#push_usersList').hide();
      $('#update_dialog_button').hide();
  
    // group
    } else {
      $('.dialog-type-info').text('').append('<b>Dialog type: </b>group chat');
      $('.new-info').show();
      $('.push').show();
      $('#push_usersList').show();
      $('#update_dialog_button').show();
  
      // get users to add to dialog
      retrieveUsersForDialogUpdate(function(users){
        if(users === null || users.length === 0){
          return;
        }
  
        $.each(users, function(index, item){
          var userHtml = buildUserHtml(this.user.login, this.user.id, true);
          $('#add_new_occupant').append(userHtml);
        });
      });
      setupScrollHandlerForNewOccupants();
    }
  }