Send messages to one recipient at a time
This commit is contained in:
parent
a5576a83c7
commit
f880feccb3
1 changed files with 6 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue