From 0b1b56889380a53eef62fcb41a55e312b493e732 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Tue, 22 May 2018 13:12:13 -0400 Subject: [PATCH] Fix notifications for replies. Notifications for replies will no longer display as a "Media Message" if they do not contain media. Instead, they will just contain the reply text. Fixes #7798 --- .../thoughtcrime/securesms/notifications/MessageNotifier.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java b/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java index 327c2bd15e..43ce881e8e 100644 --- a/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java +++ b/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java @@ -451,6 +451,10 @@ public class MessageNotifier { slideDeck = ((MediaMmsMessageRecord)record).getSlideDeck(); } + if (record.isMms() && ((MmsMessageRecord) record).getQuote() != null && ((MmsMessageRecord) record).getSlideDeck().getSlides().isEmpty()) { + body = record.getDisplayBody(); + } + if (threadRecipients == null || !threadRecipients.isMuted()) { notificationState.addNotification(new NotificationItem(id, mms, recipient, conversationRecipient, threadRecipients, threadId, body, timestamp, slideDeck)); }