mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 01:45:22 +00:00
Update notification priorities to MAX (Heads-up) for DMs and Active Peers
This commit is contained in:
@@ -241,7 +241,7 @@ class NotificationManager(
|
|||||||
.setContentText(contentText)
|
.setContentText(contentText)
|
||||||
.setContentIntent(pendingIntent)
|
.setContentIntent(pendingIntent)
|
||||||
.setAutoCancel(true)
|
.setAutoCancel(true)
|
||||||
.setPriority(NotificationCompat.PRIORITY_HIGH)
|
.setPriority(NotificationCompat.PRIORITY_MAX)
|
||||||
.setCategory(NotificationCompat.CATEGORY_MESSAGE)
|
.setCategory(NotificationCompat.CATEGORY_MESSAGE)
|
||||||
.addPerson(person)
|
.addPerson(person)
|
||||||
.setShowWhen(true)
|
.setShowWhen(true)
|
||||||
@@ -343,7 +343,7 @@ class NotificationManager(
|
|||||||
.setContentText(contentText)
|
.setContentText(contentText)
|
||||||
.setContentIntent(pendingIntent)
|
.setContentIntent(pendingIntent)
|
||||||
.setAutoCancel(true)
|
.setAutoCancel(true)
|
||||||
.setPriority(NotificationCompat.PRIORITY_MIN)
|
.setPriority(NotificationCompat.PRIORITY_MAX)
|
||||||
.setCategory(NotificationCompat.CATEGORY_MESSAGE)
|
.setCategory(NotificationCompat.CATEGORY_MESSAGE)
|
||||||
.setShowWhen(true)
|
.setShowWhen(true)
|
||||||
.setWhen(System.currentTimeMillis())
|
.setWhen(System.currentTimeMillis())
|
||||||
|
|||||||
Reference in New Issue
Block a user