Метод collectRootChatIds

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

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

Путь к исходному файлу строки 217–232
~/bitrix/modulesim/lib/V2/Integration/AiAssistant/Tools/GetUnreadCountersTool.php

Исходный код

PHP
private

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

private function collectRootChatIds(UserCounters $userCounters): array

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

Описание

A counter whose parent is absent from UserCounters is a root too: the collector keeps such "orphans" only for types with requiresParentMembership=false (e.g. calendar event chats), where the user legitimately reads the chat without being a member of its parent. Otherwise their unread messages would vanish from both the totals and the chatsWithUnread sample.

Параметры

1
Имя Тип По умолчанию Флаги
$userCounters UserCounters -
-