Skip to content

Commit 8db1715

Browse files
Merge pull request #1063 from nextcloud/backport/1061/stable21
[stable21] Give twofactor nextcloud notifications a high priority
2 parents 34ddf9e + 3da477b commit 8db1715

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/Push.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,9 @@ protected function encryptAndSign(Key $userKey, array $device, int $id, INotific
413413
if ($isTalkNotification) {
414414
$priority = 'high';
415415
$type = $data['type'] === 'call' ? 'voip' : 'alert';
416+
} elseif ($data['app'] === 'twofactor_nextcloud_notification') {
417+
$priority = 'high';
418+
$type = 'alert';
416419
} else {
417420
$priority = 'normal';
418421
$type = 'alert';

0 commit comments

Comments
 (0)