From ee9171ba7afedc1130282ed0b7b229ba8ffe2ed4 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Mon, 11 May 2026 15:57:42 +0200 Subject: [PATCH] fix(task-streaming): and test sending data via notify_push Signed-off-by: Julien Veyssier --- lib/private/TaskProcessing/Manager.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/private/TaskProcessing/Manager.php b/lib/private/TaskProcessing/Manager.php index 390b6b622ec..6cdf31c4f7a 100644 --- a/lib/private/TaskProcessing/Manager.php +++ b/lib/private/TaskProcessing/Manager.php @@ -1231,11 +1231,11 @@ class Manager implements IManager { return false; } $userId = $task->getUserId(); - if ($userId !== null && $userId !== '') { + if ($userId !== null && $userId !== '' && $this->appManager->isEnabledForAnyone('notify_push')) { try { - // TODO figure out how to get the queue with DI - // $queue = Server::get(\OCA\NotifyPush\IQueue::class); - $queue = $this->serverContainer->get(\OCA\NotifyPush\IQueue::class); + // $this->appManager->loadApp('notify_push'); + $queue = Server::get(\OCA\NotifyPush\Queue\IQueue::class); + // $queue = $this->serverContainer->get(\OCA\NotifyPush\Queue\IQueue::class); $queue->push('notify_custom', [ 'user' => $userId, 'message' => 'taskprocessing_task_results',