• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/classes/general/im_notify.php
  • Класс: CIMNotify
  • Вызов: CIMNotify::fillReadStatuses
private function fillReadStatuses(array $notifications): array
{
	$messageIds = array_keys($notifications);

	$readStatuses = (new IMV2MessageReadService($this->user_id))->getReadStatusesByMessageIds($messageIds);

	foreach ($notifications as $id => $notification)
	{
		$notifications[$id]['NOTIFY_READ'] = $readStatuses[$id] ? 'Y' : 'N';
	}

	return $notifications;
}