Adding person in chat notification in case DND setting is set to allow chat notifications for favorite contacts

This commit is contained in:
Sylvain Berfini 2022-08-22 11:26:07 +02:00
parent f125b54b40
commit 740a935525

View file

@ -839,6 +839,7 @@ class NotificationsManager(private val context: Context) {
.build()
val notificationBuilder = NotificationCompat.Builder(context, context.getString(R.string.notification_channel_chat_id))
.addPerson(lastPerson)
.setSmallIcon(R.drawable.topbar_chat_notification)
.setAutoCancel(true)
.setLargeIcon(largeIcon)