From 8d43fb850d4e90035dd4b180774339120e40cf84 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Tue, 4 Sep 2018 16:57:55 -0700 Subject: [PATCH] Make group notifications use the latest sender's ringtone. --- .../notifications/MultipleRecipientNotificationBuilder.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/thoughtcrime/securesms/notifications/MultipleRecipientNotificationBuilder.java b/src/org/thoughtcrime/securesms/notifications/MultipleRecipientNotificationBuilder.java index a913661dc2..59c9f168f8 100644 --- a/src/org/thoughtcrime/securesms/notifications/MultipleRecipientNotificationBuilder.java +++ b/src/org/thoughtcrime/securesms/notifications/MultipleRecipientNotificationBuilder.java @@ -49,6 +49,10 @@ public class MultipleRecipientNotificationBuilder extends AbstractNotificationBu setContentText(context.getString(R.string.MessageNotifier_most_recent_from_s, recipient.toShortString())); } + + if (recipient.getNotificationChannel() != null) { + setChannelId(recipient.getNotificationChannel()); + } } public void addActions(PendingIntent markAsReadIntent) {