Added sender's avatar also to incoming message notification

This commit is contained in:
Juha Heinanen
2026-05-03 18:48:53 +03:00
parent 1ef4934ac1
commit 50c701a35e

View File

@ -1385,6 +1385,7 @@ class BaresipService: Service() {
.setStyle(messagingStyle)
.setCategory(NotificationCompat.CATEGORY_MESSAGE)
.setPriority(NotificationCompat.PRIORITY_HIGH)
.addPerson(senderPerson)
// message inline reply
val remoteInput = RemoteInput.Builder(KEY_TEXT_REPLY)
@ -1835,7 +1836,7 @@ class BaresipService: Service() {
getString(R.string.is_calling)
val nb = NotificationCompat.Builder(this, HIGH_CHANNEL_ID)
nb.setSmallIcon(R.drawable.ic_notification_b)
nb.setSmallIcon(R.drawable.ic_notification_call)
.setColor(ContextCompat.getColor(this, R.color.colorPrimary))
.setContentIntent(pi)
.setCategory(Notification.CATEGORY_CALL)