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
path: root/lib
diff options
context:
space:
mode:
authorValdnet <47037905+Valdnet@users.noreply.github.com>2021-08-24 10:29:45 +0300
committerGitHub <noreply@github.com>2021-08-24 10:29:45 +0300
commit61a8f026e929155258478a4840257ceca41bf60e (patch)
tree3a99a849c5808d4ea40060d60be89c370c4e4222 /lib
parent47ae540c09497d41dd8d24edee84bddced4f16c6 (diff)
High priority for the PhoneTrack app
Added high priority for notifications for PhoneTrack. Notifications sent from this application are also important for users. The information it contains must be received very quickly in the event of exceeding the set zone or approaching two devices. Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Push.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Push.php b/lib/Push.php
index 4bb6f66..89a345c 100644
--- a/lib/Push.php
+++ b/lib/Push.php
@@ -422,6 +422,9 @@ class Push {
} elseif ($data['app'] === 'twofactor_nextcloud_notification') {
$priority = 'high';
$type = 'alert';
+ } elseif ($data['app'] === 'phonetrack') {
+ $priority = 'high';
+ $type = 'alert';
} else {
$priority = 'normal';
$type = 'alert';