Don't mark expiration updates as unread

Fixes #5768
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2016-10-10 10:00:11 -07:00
parent ff2cb6935d
commit 38ec5647dd
1 changed files with 1 additions and 1 deletions

View File

@ -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));