mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 01:07:47 +00:00
show attachment emoji in notification
This commit is contained in:
parent
bf272787fe
commit
d575867d6b
@ -479,13 +479,13 @@ public class DefaultMessageNotifier implements MessageNotifier {
|
|||||||
body = SpanUtil.italic(context.getString(R.string.MessageNotifier_sticker));
|
body = SpanUtil.italic(context.getString(R.string.MessageNotifier_sticker));
|
||||||
slideDeck = ((MmsMessageRecord) record).getSlideDeck();
|
slideDeck = ((MmsMessageRecord) record).getSlideDeck();
|
||||||
} else if (record.isMms() && TextUtils.isEmpty(body) && !((MmsMessageRecord) record).getSlideDeck().getSlides().isEmpty()) {
|
} else if (record.isMms() && TextUtils.isEmpty(body) && !((MmsMessageRecord) record).getSlideDeck().getSlides().isEmpty()) {
|
||||||
body = SpanUtil.italic(context.getString(R.string.MessageNotifier_media_message));
|
|
||||||
slideDeck = ((MediaMmsMessageRecord)record).getSlideDeck();
|
slideDeck = ((MediaMmsMessageRecord)record).getSlideDeck();
|
||||||
|
body = SpanUtil.italic(slideDeck.getBody());
|
||||||
} else if (record.isMms() && !record.isMmsNotification() && !((MmsMessageRecord) record).getSlideDeck().getSlides().isEmpty()) {
|
} else if (record.isMms() && !record.isMmsNotification() && !((MmsMessageRecord) record).getSlideDeck().getSlides().isEmpty()) {
|
||||||
String message = context.getString(R.string.MessageNotifier_media_message_with_text, body);
|
slideDeck = ((MediaMmsMessageRecord)record).getSlideDeck();
|
||||||
|
String message = slideDeck.getBody() + ": " + record.getBody();
|
||||||
int italicLength = message.length() - body.length();
|
int italicLength = message.length() - body.length();
|
||||||
body = SpanUtil.italic(message, italicLength);
|
body = SpanUtil.italic(message, italicLength);
|
||||||
slideDeck = ((MediaMmsMessageRecord)record).getSlideDeck();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (threadRecipients == null || !threadRecipients.isMuted()) {
|
if (threadRecipients == null || !threadRecipients.isMuted()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user