Skip to content

Commit b7dc9bc

Browse files
Merge pull request #893 from nextcloud/feat/noid/priority-notifications
feat(notifications): Mark 2FA notifications as priority
2 parents fea935f + 5c881ba commit b7dc9bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Notification/Notifier.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public function prepare(INotification $notification, string $languageCode): INot
9999

100100
$notification->addParsedAction($approveAction)
101101
->addParsedAction($disapproveAction)
102+
->setPriorityNotification(true)
102103
->setParsedSubject(str_replace('{ip}', $param['ip'], $l->t('Login attempt from IP address {ip}')))
103104
->setRichSubject(
104105
$l->t('Login attempt from IP address {ip}'),

0 commit comments

Comments
 (0)