• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/Configuration/Manager.php
  • Класс: BitrixImConfigurationManager
  • Вызов: Manager::sendSettingsChangeEvent
static function sendSettingsChangeEvent(int $userId, array $generalSettings): void
{
	// TODO: refactoring required for the new interface
	if (isset($generalSettings['openDesktopFromPanel']) && CModule::IncludeModule('pull'))
	{
		Event::add($userId, [
			'module_id' => 'im',
			'command' => 'settingsUpdate',
			'expiry' => 5,
			'params' => [
				'openDesktopFromPanel' => $generalSettings['openDesktopFromPanel'],
			],
			'extra' => Common::getPullExtra()
		]);
	}
}