• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Settings/UserConfiguration.php
  • Класс: BitrixImV2SettingsUserConfiguration
  • Вызов: UserConfiguration::updateNotifySetting
public function updateNotifySetting(array $settingsConfiguration)
{
	if (!$this->notifyPreset->isPersonal($this->userId))
	{
		$notifyPreset = Preset::getPersonal($this->userId);

		if (!$notifyPreset->isExist())
		{
			$notifyPreset = Preset::getInstance();
			$notifyPreset->initPersonal($this->userId);
		}
		$this->notifyPreset = $notifyPreset;

		$this->notifyPreset->bindToUser($this->userId, [Preset::BIND_NOTIFY]);
		CacheManager::getUserCache($this->userId)->clearCache();
	}

	$this->notifyPreset->notify->updateSetting($settingsConfiguration);

	CacheManager::getPresetCache($this->notifyPreset->getId())->clearCache();
}