• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Chat/PrivateChat.php
  • Класс: BitrixImV2ChatPrivateChat
  • Вызов: PrivateChat::getDisplayedTitle
public function getDisplayedTitle(): ?string
{
	return Loc::getMessage(
		'IM_PRIVATE_CHAT_TITLE',
		[
			//todo: replace to $this->getContext()->getUser() when ->getUser will return V2 User
			'#CHAT_MEMBER_NAME_1#' => BitrixImV2EntityUserUser::getInstance($this->getContext()->getUserId())->getName(),
			'#CHAT_MEMBER_NAME_2#' => $this->getCompanion()->getName(),
		]
	);
}