• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Message/Reaction/ReactionService.php
  • Класс: BitrixImV2MessageReactionReactionService
  • Вызов: ReactionService::hasAnyReaction
private function hasAnyReaction(): bool
{
	$result = ReactionTable::query()
		->setSelect(['MESSAGE_ID'])
		->where('MESSAGE_ID', $this->message->getMessageId())
		->where('USER_ID', $this->getContext()->getUserId())
		->setLimit(1)
		->fetch()
	;

	return $result !== false;
}