Fix for expiration update sync sent messages

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2016-10-03 12:48:30 -07:00
parent 314dd9181c
commit 5ed1c9c72b

View File

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