Merge pull request #1277 from deltachat/notifyswipednotread

Fix #999 swiping a notification away should not mark things as "noticed"
This commit is contained in:
cyBerta
2020-05-05 18:46:43 +02:00
committed by GitHub
@@ -253,7 +253,6 @@ 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);
@@ -313,7 +312,6 @@ 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);