Метод restoreMembersHeldByStructure

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

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

Путь к исходному файлу строки 3768–3816
~/bitrix/modulesim/lib/V2/Chat.php

Исходный код

PHP
public

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

public function restoreMembersHeldByStructure(array $userIds, ?int $deletedAuthorId = null): void

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

Описание

The answer that allowed a deletion was true of the moment it was read, and a change that holds the user again right after it starts an addition sync that adds nobody - the user is still in the chat at that point. Asking once more after the deletion closes the window from both sides: an earlier change is answered here, a later one meets a chat the user has left. An unanswered question restores nobody. The restoration is a write on an answer of a moment too, so verifyRestoredMembers() checks it the same way. Both writes belong to the sync, so both are made as the system: in a collab the right to exclude a member is not the right to invite them back.

Параметры

2
Имя Тип По умолчанию Флаги
$userIds array -
-
$deletedAuthorId ?int null
-