Skip to content

Commit

Permalink
Change elseif to or
Browse files Browse the repository at this point in the history
Co-authored-by: Joas Schilling <[email protected]>
  • Loading branch information
Valdnet and nickvergessen authored Aug 24, 2021
1 parent 61a8f02 commit 7e7ca3f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Push.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,7 @@ 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';
} elseif ($data['app'] === 'phonetrack') {
} elseif ($data['app'] === 'twofactor_nextcloud_notification' || $data['app'] === 'phonetrack') {
$priority = 'high';
$type = 'alert';
} else {
Expand Down

0 comments on commit 7e7ca3f

Please sign in to comment.