fix(task-streaming): and test sending data via notify_push

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
This commit is contained in:
Julien Veyssier 2026-05-11 15:57:42 +02:00
parent 172423f3d6
commit 704d482b17
No known key found for this signature in database
GPG key ID: 4141FEE162030638

View file

@ -1234,11 +1234,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',