docs: function triggerDialog(dialogId){
      // deselect
      var kids = $('#dialogs-list').children();
      kids.removeClass('active').addClass('inactive');
  
      // select
      $('#'+dialogId).removeClass('inactive').addClass('active');
  
      $('.list-group-item.active .badge').text(0).delay(250).fadeOut(500);
  
      $('#messages-list').html('');
  
      retrieveChatMessages(dialogs[dialogId], null);
  
      $('#messages-list').scrollTop($('#messages-list').prop('scrollHeight'));
  }