From 3585c3fcf059e3a36be1d14ab3854b52e908501d Mon Sep 17 00:00:00 2001 From: moezbhatti Date: Mon, 9 Sep 2019 20:52:59 -0400 Subject: [PATCH] #1490 - Fix DND starred contacts not working --- .../com/moez/QKSMS/common/util/NotificationManagerImpl.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/presentation/src/main/java/com/moez/QKSMS/common/util/NotificationManagerImpl.kt b/presentation/src/main/java/com/moez/QKSMS/common/util/NotificationManagerImpl.kt index e5361d41..a4715b49 100644 --- a/presentation/src/main/java/com/moez/QKSMS/common/util/NotificationManagerImpl.kt +++ b/presentation/src/main/java/com/moez/QKSMS/common/util/NotificationManagerImpl.kt @@ -212,9 +212,9 @@ class NotificationManagerImpl @Inject constructor( // Add all of the people from this conversation to the notification, so that the system can // appropriately bypass DND mode - conversation.recipients - .mapNotNull { recipient -> recipient.contact?.lookupKey } - .forEach { uri -> notification.addPerson(uri) } + conversation.recipients.forEach { recipient -> + notification.addPerson("tel:${recipient.address}") + } // Add the action buttons val actionLabels = context.resources.getStringArray(R.array.notification_actions)