• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/model/chat.php
  • Класс: BitrixImModelChatTable
  • Вызов: ChatTable::updateIndexRecord
static function updateIndexRecord(ChatIndex $index)
{
	$record = static::getRecordChatData($index->getChatId());
	if(!is_array($record))
	{
		return;
	}

	if ($record['TYPE'] === Chat::IM_TYPE_OPEN_LINE)
	{
		if (Loader::includeModule('imopenlines'))
		{
			BitrixImOpenLinesModelChatIndexTable::updateIndex($index->getChatId(), $record['TITLE'] ?? null);
		}

		return;
	}

	$index->setTitle($record['TITLE']);
	$updateData = self::prepareParamsForIndex($index);

	ChatIndexTable::updateIndex(
		$index->getChatId(),
		'CHAT_ID',
		$updateData
	);
}