From 25b4c55de1f27c1f076b74668d7fa440e7305fcb Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Mon, 10 Mar 2025 12:57:36 +0100 Subject: [PATCH] fix: Avoid pushing empty messages Signed-off-by: Julius Knorr --- lib/Service/ApiService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/ApiService.php b/lib/Service/ApiService.php index 724fb43e835..2ae85a22a13 100644 --- a/lib/Service/ApiService.php +++ b/lib/Service/ApiService.php @@ -208,7 +208,7 @@ private function addToPushQueue(Document $document, array $steps): void { 'message' => 'text_steps', 'body' => [ 'documentId' => $document->getId(), - 'steps' => $steps, + 'steps' => array_values(array_filter($steps)), ], ]); }