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
fork-5.53.8
Greyson Parrelli 2018-05-22 13:12:13 -04:00
rodzic 3a827d1c48
commit 0b1b568893
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

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