Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-04-19 14:51:03 +0300
committerJoas Schilling <coding@schilljs.com>2017-04-19 14:51:03 +0300
commitc4625ff19a4ef5f242713f0fe7817aa04bdd930d (patch)
tree702cf53b79c98d5ab12b3d41b52892831b39d88b
parent37f5a935f1dc285ab88bd3a64a5dcffe9364c441 (diff)
Allow sending multiple notifications via the same proxy
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/Push.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Push.php b/lib/Push.php
index baf2c87..d1d5471 100644
--- a/lib/Push.php
+++ b/lib/Push.php
@@ -92,7 +92,7 @@ class Push {
if (!isset($pushNotifications[$device['proxyserver']])) {
$pushNotifications[$device['proxyserver']] = [];
}
- $pushNotifications[$device['proxyserver']] = json_encode($this->encryptAndSign($userKey, $device, $notification));
+ $pushNotifications[$device['proxyserver']][] = json_encode($this->encryptAndSign($userKey, $device, $notification));
} catch (InvalidTokenException $e) {
// Token does not exist anymore, should drop the push device entry
$this->deletePushToken($device['token']);