• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Controller/Chat.php
  • Класс: BitrixImV2ControllerChat
  • Вызов: Chat::setOwnerAction
public function setOwnerAction(BitrixImV2Chat $chat, int $ownerId)
{
	$chat->setAuthorId($ownerId);
	$result = $chat->save();
	if (!$result->isSuccess())
	{
		return $this->convertKeysToCamelCase($result->getErrors());
	}

	return $result->isSuccess();
}