High importance = high priority notification

pull/214/head
M66B 6 months ago
parent 91dc834295
commit 7509e51f37

@ -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

Loading…
Cancel
Save