From e46a77f5efc694cf832690a86bb2b5d7f1f78a0d Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Sun, 30 Jul 2023 16:30:58 -0400 Subject: [PATCH] Reverts to use the messageTitle as Group --- .../amethyst/service/notifications/NotificationUtils.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/service/notifications/NotificationUtils.kt b/app/src/main/java/com/vitorpamplona/amethyst/service/notifications/NotificationUtils.kt index 37377f374..cbe51ce1e 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/service/notifications/NotificationUtils.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/service/notifications/NotificationUtils.kt @@ -170,7 +170,8 @@ object NotificationUtils { .setContentTitle(messageTitle) .setContentText(applicationContext.getString(R.string.app_notification_private_message)) .setLargeIcon(picture?.bitmap) - .setGroup(notificationGroupKey) + .setGroup(messageTitle) + // .setGroup(notificationGroupKey) //-> Might need a Group summary as well before we activate this .setContentIntent(contentPendingIntent) .setPriority(NotificationCompat.PRIORITY_HIGH) .setAutoCancel(true) @@ -184,7 +185,8 @@ object NotificationUtils { .setContentTitle(messageTitle) .setContentText(messageBody) .setLargeIcon(picture?.bitmap) - .setGroup(notificationGroupKey) + .setGroup(messageTitle) + // .setGroup(notificationGroupKey) //-> Might need a Group summary as well before we activate this .setContentIntent(contentPendingIntent) .setPublicVersion(builderPublic.build()) .setPriority(NotificationCompat.PRIORITY_HIGH)