Метод recomputeForSourceChatRead
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
92–134
~/bitrix/modulesim/lib/V2/Recent/PreviewSource/CollabPreviewSourcePointerService.php
Исходный код
Сигнатура метода
public function recomputeForSourceChatRead(int $sourceChatId, int $userId): ?int
Возвращает:
?int
Описание
Read-path recompute: recomputes the reading user's collab row and returns the collab chat id whose pointer was refreshed (so the caller can push the preview), or null when there is no recompute. Known limitation: a read inside a thread (two levels under the collab) is not recomputed in realtime, matching the one-level-up resolution used across the feature; it self-corrects on the next read.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$sourceChatId
|
int
|
-
|
-
|
$userId
|
int
|
-
|
-
|