diff options
author | szaimen <szaimen@e.mail.de> | 2021-08-23 14:13:44 +0300 |
---|---|---|
committer | szaimen <szaimen@e.mail.de> | 2021-08-23 14:15:58 +0300 |
commit | 3c483e82fa6f6f12973fc895da5148687cf929ba (patch) | |
tree | 366aea93b86942f542ed5574d4523766480f4ef3 /lib | |
parent | b3b038e58d9b547b48b8379d8f526e728af1f718 (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.php | 3 |
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'; |