Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Give twofactor nextcloud notifications a high priority
Signed-off-by: szaimen <[email protected]>
  • Loading branch information
szaimen authored and backportbot[bot] committed Aug 23, 2021
commit 59feb628e25307adda5e7902f3374253fb9f79e3
3 changes: 3 additions & 0 deletions lib/Push.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,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';
Expand Down