Метод recomputeForDetachedChild

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 178–200
~/bitrix/modulesim/lib/V2/Recent/PreviewSource/CollabPreviewSourcePointerService.php

Исходный код

PHP
public

Сигнатура метода

public function recomputeForDetachedChild(Chat\CollabChat $collab): void

Возвращает: void

Описание

Recompute every collab member's preview pointer after a child chat was detached from the project. The detached chat (its PARENT_ID is now 0) is no longer a resolver candidate, so a pointer that still references it falls back to an earlier message / the collab's own last message. Detach recomputes AFTER UpdateService already emitted its recent pull (which carried the stale pointer), so an info-only RecentUpdateMeta is pushed here to refresh the live preview in place without moving the row.

Параметры

1
Имя Тип По умолчанию Флаги
$collab Chat\CollabChat -
-