Класс CopilotVoteEnricher

Injects the per-user `vote` state into an already-assembled `copilot.messages[]` REST block. `vote` is a PER-RECIPIENT personalization and is attached ONLY on synchronous per-user read paths (message load/paging controller responses), where $userId is the authenticated request user. It is deliberately kept OUT of the shared popup-DTO layer (CopilotPopupItem / MessageCollection::getPopupData), because that layer is reused by broadcast pull/push payloads (recent-preview pull, reply messageSend additionalEntities): there a single base payload is built once (BaseEvent::getBasePullParams) and delivered to many recipients, so a vote computed from the ambient context user would leak to everyone.

class

Полное имя класса

Bitrix\Im\V2\Message\Vote\CopilotVoteEnricher

Методы

Методы и их характеристики

1 методов