From 5ed1c9c72b975f613d8eaee214c37f1c4993b2b7 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Mon, 3 Oct 2016 12:48:30 -0700 Subject: [PATCH] Fix for expiration update sync sent messages // FREEBIE --- src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java b/src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java index 230ec3f0b3..1ceb740649 100644 --- a/src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java +++ b/src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java @@ -376,13 +376,6 @@ public class PushDecryptJob extends ContextJob { DatabaseFactory.getRecipientPreferenceDatabase(context).setExpireMessages(recipients, message.getMessage().getExpiresInSeconds()); - database.markExpireStarted(messageId, message.getExpirationStartTimestamp()); - ApplicationContext.getInstance(context) - .getExpiringMessageManager() - .scheduleDeletion(messageId, true, - message.getExpirationStartTimestamp(), - message.getMessage().getExpiresInSeconds()); - if (smsMessageId.isPresent()) { DatabaseFactory.getSmsDatabase(context).deleteMessage(smsMessageId.get()); }