• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/classes/general/im_contact_list.php
  • Класс: CAllIMContactList
  • Вызов: CAllIMContactList::GetUserColor
static function GetUserColor($id, $gender)
{
	$code = IMColor::getCodeByNumber($id);
	if ($gender == 'M')
	{
		$replaceColor = IMColor::getReplaceColors();
		if (isset($replaceColor[$code]))
		{
			$code = $replaceColor[$code];
		}
	}

	return IMColor::getColor($code);
}