Класс ChatTreeDepartmentSynchronizer

Maintains the tree invariant "a chat's department/team links are mirrored onto all of its ancestor chats" (and, symmetrically, removed from descendants when dropped from an ancestor). Structure members then reach every parent through that parent's own HR sync (add and remove), not through the member push-up cascade. Idempotent: already-linked nodes are skipped and HR fires no relation event for a duplicate link/unlink, so the recursion that re-enters this synchronizer on each new ancestor/descendant change terminates naturally.

class

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

Bitrix\Im\V2\Chat\Tree\ChatTreeDepartmentSynchronizer

Методы

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

4 методов