Merge pull request #1360 from deltachat/revert-1277-notifyswipednotread

Revert "Fix #999 swiping a notification away should not mark things as "noticed""
This commit is contained in:
bjoern
2020-05-13 23:44:09 +02:00
committed by GitHub
@@ -253,6 +253,7 @@ abstract class MessageNotifier {
firstItem.getText(""), firstItem.getSlideDeck());
builder.setContentIntent(firstItem.getPendingIntent(context));
builder.setGroup(NOTIFICATION_GROUP);
builder.setDeleteIntent(notificationState.getMarkAsReadIntent(context, chatId, notificationId));
long timestamp = firstItem.getTimestamp();
if (timestamp != 0) builder.setWhen(timestamp);
@@ -312,6 +313,7 @@ abstract class MessageNotifier {
builder.setMessageCount(notificationState.getMessageCount(), notificationState.getChatCount());
builder.setMostRecentSender(firstItem.getIndividualRecipient());
builder.setGroup(NOTIFICATION_GROUP);
builder.setDeleteIntent(notificationState.getMarkAsReadIntent(context, 0, SUMMARY_NOTIFICATION_ID));
long timestamp = firstItem.getTimestamp();
if (timestamp != 0) builder.setWhen(timestamp);