docs: function buildDialogHtml(dialogId, dialogUnreadMessagesCount, dialogIcon, dialogName, dialogLastMessage) {
      var UnreadMessagesCountShow = '<span class="badge">' + dialogUnreadMessagesCount + '</span>',
          UnreadMessagesCountHide = '<span class="badge" style="display: none;">' + dialogUnreadMessagesCount + '</span>',
          videoCall = '<img src="images/video_call.png" class="video_state" alt="call">';
  
      var dialogHtml =
          '<a href="#" class="list-group-item inactive" id=' + '"' + dialogId + '"' + ' onclick="triggerDialog(' + "'" + dialogId + "'" + ')">' +
          (dialogUnreadMessagesCount ? UnreadMessagesCountShow : UnreadMessagesCountHide) +
          '<h4 class="list-group-item-heading">' + dialogIcon + '&nbsp;&nbsp;&nbsp;' +
          '<span>' + dialogName + '</span>' +
          '</h4>' + videoCall +
          '<p class="list-group-item-text last-message">' +
          (dialogLastMessage === null ? "" : dialogLastMessage) +
          '</p>' +
          '</a>';
  
      return dialogHtml;
  }