• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/model/chat.php
  • Класс: BitrixImModelChatTable
  • Вызов: ChatTable::onAfterUpdate
static function onAfterUpdate(BitrixMainORMEvent $event)
{
	$fields = $event->getParameter("fields");
	if (isset($fields['TITLE']))
	{
		$primary = $event->getParameter("id");

		$chatIndex =
			ChatIndex::create()
				->setChatId((int)$primary["ID"])
		;
		static::updateIndexRecord($chatIndex);
	}

	if (static::needCacheInvalidate($fields))
	{
		Chat::cleanCache((int)$event->getParameter("id")['ID']);
	}

	return new EntityEventResult();
}