High importance = high priority notification

This commit is contained in:
M66B 2024-02-02 08:33:41 +01:00
parent 91dc834295
commit 7509e51f37
1 changed files with 3 additions and 1 deletions

View File

@ -898,7 +898,9 @@ class NotificationHelper {
.setShowWhen(true)
.setSortKey(sortKey)
.setDeleteIntent(piIgnore)
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
.setPriority(EntityMessage.PRIORITIY_HIGH.equals(message.importance)
? NotificationCompat.PRIORITY_HIGH
: NotificationCompat.PRIORITY_DEFAULT)
.setCategory(NotificationCompat.CATEGORY_EMAIL)
.setVisibility(notify_private
? NotificationCompat.VISIBILITY_PRIVATE