From f880feccb398d1b2750d2eda945c0aa78de44fba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Mon, 31 Oct 2022 13:27:01 +0100 Subject: [PATCH] Send messages to one recipient at a time --- signal_webhook/signal.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/signal_webhook/signal.py b/signal_webhook/signal.py index 525122b..f2df427 100644 --- a/signal_webhook/signal.py +++ b/signal_webhook/signal.py @@ -9,10 +9,11 @@ def signal_send(recipients, message): try: bus = SystemBus() signal_bus = bus.get("org.asamk.Signal") - signal_bus.sendMessage( - message, - [], - recipients, - ) + for recipient in recipients: + signal_bus.sendMessage( + message, + [], + recipient, + ) except GError as exn: logger.error("Cannot send Signal notification: %s", exn)