mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
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:
parent
3a827d1c48
commit
0b1b568893
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user