docs: function onDialogDelete() {
      if (confirm('Are you sure you want remove the dialog?')) {
          QB.chat.dialog.delete(currentDialog._id, function(err, res) {
              if (err) {
                  console.error(err);
              } else {
                  console.info('Dialog removed');
  
                  updateUIWhenDeletedDialog(currentDialog._id);
              }
          });
  
          $("#update_dialog").modal("hide");
          $('#update_dialog .progress').show();
      }
  }