display last not first message in notification. closes #3265 fixes #3264

This commit is contained in:
Daniel Gultsch 2018-12-15 17:44:05 +01:00
parent fc09c5fa86
commit b4cd31520d
1 changed files with 2 additions and 1 deletions

View File

@ -638,7 +638,8 @@ public class NotificationService {
} else {
if (messages.get(0).getConversation().getMode() == Conversation.MODE_SINGLE) {
builder.setStyle(new NotificationCompat.BigTextStyle().bigText(getMergedBodies(messages)));
builder.setContentText(UIHelper.getMessagePreview(mXmppConnectionService, messages.get(0)).first);
builder.setContentText(UIHelper.getMessagePreview(mXmppConnectionService, messages.get(messages.size()-1)).first);
builder.setNumber(messages.size());
} else {
final NotificationCompat.InboxStyle style = new NotificationCompat.InboxStyle();
SpannableString styledString;