EventAttendeesUpdate::updateEventChat

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. EventAttendeesUpdate
  4. updateEventChat
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/queue/processor/eventattendeesupdate.php
  • Класс: BitrixCalendarCoreQueueProcessorEventAttendeesUpdate
  • Вызов: EventAttendeesUpdate::updateEventChat
protected function updateEventChat(
	?int $chatId,
	?int $newMeetingHostId,
	array $deletedAttendeesIds
): void
{
	if ($chatId > 0)
	{
		$chat = new CIMChat($newMeetingHostId);
		if ($newMeetingHostId > 0)
		{
			$chat->SetOwner($chatId, $newMeetingHostId, false);
		}
		foreach ($deletedAttendeesIds as $deletedAttendeeId)
		{
			$chat->DeleteUser($chatId, $deletedAttendeeId, false);
		}
	}
}

Добавить комментарий