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:
authorszaimen <szaimen@e.mail.de>2021-08-23 14:13:44 +0300
committerszaimen <szaimen@e.mail.de>2021-08-23 14:15:58 +0300
commit3c483e82fa6f6f12973fc895da5148687cf929ba (patch)
tree366aea93b86942f542ed5574d4523766480f4ef3 /lib
parentb3b038e58d9b547b48b8379d8f526e728af1f718 (diff)
Give twofactor nextcloud notifications a high priority
Signed-off-by: szaimen <szaimen@e.mail.de>
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 f627f43..4bb6f66 100644
--- a/lib/Push.php
+++ b/lib/Push.php
@@ -419,6 +419,9 @@ class Push {
if ($isTalkNotification) {
$priority = 'high';
$type = $data['type'] === 'call' ? 'voip' : 'alert';
+ } elseif ($data['app'] === 'twofactor_nextcloud_notification') {
+ $priority = 'high';
+ $type = 'alert';
} else {
$priority = 'normal';
$type = 'alert';