Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/integration.yml2
-rw-r--r--.github/workflows/phpunit.yml2
-rw-r--r--lib/Push.php3
3 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index 5ed9daa..fb67e35 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -83,7 +83,7 @@ jobs:
services:
mysql:
- image: mariadb
+ image: mariadb:10.5
ports:
- 4444:3306/tcp
env:
diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml
index 88e8b30..31c34d7 100644
--- a/.github/workflows/phpunit.yml
+++ b/.github/workflows/phpunit.yml
@@ -82,7 +82,7 @@ jobs:
services:
mysql:
- image: mariadb
+ image: mariadb:10.5
ports:
- 4444:3306/tcp
env:
diff --git a/lib/Push.php b/lib/Push.php
index f627f43..4bb6f66 100644
--- a/lib/Push.php
+++ b/lib/Push.php
@@ -419,6 +419,9 @@ class Push {
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';