From a8366387ab2733fd7668a9b017eddb2ca3a0ecb4 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Tue, 14 Mar 2017 15:47:08 -0700 Subject: [PATCH] Fix the build // FREEBIE --- src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java b/src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java index 5ee129a916..3b181d0518 100644 --- a/src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java +++ b/src/org/thoughtcrime/securesms/jobs/PushDecryptJob.java @@ -307,8 +307,7 @@ public class PushDecryptJob extends ContextJob { { EncryptingSmsDatabase database = DatabaseFactory.getEncryptingSmsDatabase(context); Recipients recipients = getSyncMessageDestination(message); - String body = message.getMessage().getBody().or(""); - OutgoingTextMessage outgoingTextMessage = new OutgoingTextMessage(recipients, body); + OutgoingTextMessage outgoingTextMessage = new OutgoingTextMessage(recipients, "", -1); OutgoingEndSessionMessage outgoingEndSessionMessage = new OutgoingEndSessionMessage(outgoingTextMessage); long threadId = DatabaseFactory.getThreadDatabase(context).getThreadIdFor(recipients); @@ -321,9 +320,7 @@ public class PushDecryptJob extends ContextJob { long messageId = database.insertMessageOutbox(masterSecret, threadId, outgoingEndSessionMessage, false, message.getTimestamp()); - database.markAsSent(messageId); - database.markAsPush(messageId); - database.markAsSecure(messageId); + database.markAsSent(messageId, true); } if (smsMessageId.isPresent()) {