From 290b7954f79ab4a121daa342c7f71ee6efe7478e Mon Sep 17 00:00:00 2001 From: bjoern Date: Wed, 13 May 2020 23:40:36 +0200 Subject: [PATCH] Revert "Fix #999 swiping a notification away should not mark things as "noticed"" --- .../thoughtcrime/securesms/notifications/MessageNotifier.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java b/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java index ac946dc55..782c67223 100644 --- a/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java +++ b/src/org/thoughtcrime/securesms/notifications/MessageNotifier.java @@ -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);