From 3c483e82fa6f6f12973fc895da5148687cf929ba Mon Sep 17 00:00:00 2001 From: szaimen Date: Mon, 23 Aug 2021 13:13:44 +0200 Subject: [PATCH] Give twofactor nextcloud notifications a high priority Signed-off-by: szaimen --- lib/Push.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Push.php b/lib/Push.php index f627f4338..4bb6f6690 100644 --- a/lib/Push.php +++ b/lib/Push.php @@ -419,6 +419,9 @@ protected function encryptAndSign(Key $userKey, array $device, int $id, INotific 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';