Метод shouldCutForeignMention

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

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

Путь к исходному файлу строки 252–255
~/bitrix/modulesim/lib/V2/Public/Provider/MessageHistory/MessageHistoryProvider.php

Исходный код

PHP
private

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

private function shouldCutForeignMention(Message $message, bool $cutForeignMention): bool

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

Описание

Whether a message must be excluded because it mentions other (non-bot) users. Whether the cut applies at all (CopilotChat with the V2 feature flag off) is resolved once per getList() in loadMessages() and passed in as $cutForeignMention; here it is just combined with the per-message mention check. When V2 is enabled such messages are kept so the mention reaches the model.

Параметры

2
Имя Тип По умолчанию Флаги
$message Message -
-
$cutForeignMention bool -
-