From 38ec5647dd87391e9557753d89b3d07aba74f169 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Mon, 10 Oct 2016 10:00:11 -0700 Subject: [PATCH] Don't mark expiration updates as unread Fixes #5768 // FREEBIE --- src/org/thoughtcrime/securesms/database/MmsDatabase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/database/MmsDatabase.java b/src/org/thoughtcrime/securesms/database/MmsDatabase.java index 3a4109940b..c2abe5a88d 100644 --- a/src/org/thoughtcrime/securesms/database/MmsDatabase.java +++ b/src/org/thoughtcrime/securesms/database/MmsDatabase.java @@ -717,7 +717,7 @@ public class MmsDatabase extends MessagingDatabase { contentValues.put(PART_COUNT, retrieved.getAttachments().size()); contentValues.put(SUBSCRIPTION_ID, retrieved.getSubscriptionId()); contentValues.put(EXPIRES_IN, retrieved.getExpiresIn()); - contentValues.put(READ, 0); + contentValues.put(READ, retrieved.isExpirationUpdate() ? 1 : 0); if (!contentValues.containsKey(DATE_SENT)) { contentValues.put(DATE_SENT, contentValues.getAsLong(DATE_RECEIVED));