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
This commit is contained in:
Greyson Parrelli 2018-05-22 13:12:13 -04:00
parent 3a827d1c48
commit 0b1b568893

View File

@ -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));
}