• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/document/onlyoffice/templates/createdocumentbycalltemplatescenario.php
  • Класс: BitrixDiskDocumentOnlyOfficeTemplatesCreateDocumentByCallTemplateScenario
  • Вызов: CreateDocumentByCallTemplateScenario::getChatTitle
protected function getChatTitle(AbstractEntity $associatedEntity): string
{
	if (!$this->chatTitle)
	{
		$dialogId = $associatedEntity->getEntityId($this->userId);
		$title = Dialog::getTitle($dialogId, $this->userId);
		if (BitrixImCommon::isChatId($dialogId))
		{
			$this->chatTitle = $title;
		}
		else
		{
			$this->chatTitle = Loc::getMessage('DISK_DOCUMENT_OO_DOC_BY_CALL_TEMPLATE_DIALOG_NAME', ['#NAME#' => $title]);
		}
	}

	return $this->chatTitle;
}