• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/chat.php
  • Класс: BitrixImOpenLinesChat
  • Вызов: Chat::updateChatLineData
public function updateChatLineData($entityId): void
{
	$this->update(['ENTITY_ID' => $entityId]);

	//TODO: Replace with the method BitrixImOpenLinesChat::parseLinesChatEntityId
	$entity = explode('|', $entityId);

	if(mb_strtolower($entity[0] == 'livechat'))
	{
		$relationChat = new self($entity[2]);
		$relationEntityId = $entity[1] . '|' . $entity[3];
		$relationChat->update(['ENTITY_ID' => $relationEntityId]);
	}
}