• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Message.php
  • Класс: BitrixImV2Message
  • Вызов: Message::getUuid
public function getUuid(): ?string
{
	if ($this->isUuidFilled)
	{
		return $this->uuid;
	}

	$this->isUuidFilled = true;
	$this->uuid = null;

	if ($this->getMessageId())
	{
		$row = ImModelMessageUuidTable::query()
			->setSelect(['UUID'])
			->where('MESSAGE_ID', $this->getMessageId())
			->fetch() ?: [];

		$this->uuid = $row['UUID'] ?? null;
	}

	return $this->uuid;
}