• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Chat.php
  • Класс: BitrixImV2Chat
  • Вызов: Chat::getMessageUserDeleteText
protected function getMessageUserDeleteText(int $userId): string
{
	$currentUser = $this->getContext()->getUser();
	if ($this->getContext()->getUserId() === $userId)
	{
		return Loc::getMessage("IM_CHAT_LEAVE_{$currentUser->getGender()}", ['#USER_NAME#' => htmlspecialcharsback($currentUser->getName())]);
	}

	$user = ImV2EntityUserUser::getInstance($userId);

	return Loc::getMessage("IM_CHAT_KICK_{$currentUser->getGender()}", ['#USER_1_NAME#' => htmlspecialcharsback($currentUser->getName()), '#USER_2_NAME#' => htmlspecialcharsback($user->getName())]);
}