• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/im/notification/usecase/taskexpired.php
  • Класс: BitrixTasksIntegrationIMNotificationUseCaseTaskExpired
  • Вызов: TaskExpired::expiredForAccomplice
private function expiredForAccomplice(Message $message, TaskObject $task): Notification
{
	$messageKey = ($message->getRecepient()->getId() === $task->getCreatedBy())
		? 'TASKS_TASK_EXPIRED_RESPONSIBLE_SAME_CREATOR_MESSAGE'
		: 'TASKS_TASK_EXPIRED_RESPONSIBLE_MESSAGE'
	;

	return $this->createNotification($messageKey, $message, $task);
}