• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Message/Reaction/ReactionService.php
  • Класс: BitrixImV2MessageReactionReactionService
  • Вызов: ReactionService::getNotifyTag
private function getNotifyTag(ReactionItem $reaction): string
{
	$chat = Chat::getInstance($reaction->getChatId());
	if ($chat instanceof ChatPrivateChat)
	{
		$type = 'P';
		$id = $this->getContext()->getUserId();
	}
	else
	{
		$type = 'G';
		$id = $chat->getChatId();
	}

	return "RATING|IM|{$type}|{$id}|{$reaction->getMessageId()}|{$reaction->getReaction()}";
}