Zoom::prepareZoomChatName

  1. Bitrix24 API (v. 23.675.0)
  2. im
  3. Zoom
  4. prepareZoomChatName
  • Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/call/integration/zoom.php
  • Класс: BitrixImCallIntegrationZoom
  • Вызов: Zoom::prepareZoomChatName
private function prepareZoomChatName($dialogId): string
{
	//chat
	if (BitrixImCommon::isChatId($dialogId))
	{
		$chatInfo = BitrixImChat::getById($this->chatId);
		$zoomChatName = "Bitrix24: " . $chatInfo['NAME'];
	}
	else //dialog
	{
		$chatUsers = BitrixImChat::getUsers(Dialog::getChatId($dialogId));
		foreach ($chatUsers as $chatUser)
		{
			$usersLastNames[] = $chatUser["last_name"];
		}

		if (isset($usersLastNames))
		{
			$usersLastNames = implode(" <-> ", $usersLastNames);
			$zoomChatName = "Bitrix24: ".$usersLastNames;
		}
		else
		{
			$zoomChatName = "Bitrix24";
		}
	}

	return $zoomChatName;
}

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