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 17:34:56 +0300
committerGitHub <noreply@github.com>2021-08-24 17:34:56 +0300
commit7e7ca3f4d70eec0f4b4df6e9ee56f2faec15d4c8 (patch)
treef3c2f8941cac576f8b4b345902d7a5cfbb4ab9bf /lib
parent61a8f026e929155258478a4840257ceca41bf60e (diff)
Change elseif to or
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Push.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Push.php b/lib/Push.php
index 89a345c..af3d0a2 100644
--- a/lib/Push.php
+++ b/lib/Push.php
@@ -419,10 +419,7 @@ class Push {
if ($isTalkNotification) {
$priority = 'high';
$type = $data['type'] === 'call' ? 'voip' : 'alert';
- } elseif ($data['app'] === 'twofactor_nextcloud_notification') {
- $priority = 'high';
- $type = 'alert';
- } elseif ($data['app'] === 'phonetrack') {
+ } elseif ($data['app'] === 'twofactor_nextcloud_notification' || $data['app'] === 'phonetrack') {
$priority = 'high';
$type = 'alert';
} else {