Fix the build

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-03-14 15:47:08 -07:00
parent 5e02715a2c
commit a8366387ab

View File

@ -307,8 +307,7 @@ public class PushDecryptJob extends ContextJob {
{ {
EncryptingSmsDatabase database = DatabaseFactory.getEncryptingSmsDatabase(context); EncryptingSmsDatabase database = DatabaseFactory.getEncryptingSmsDatabase(context);
Recipients recipients = getSyncMessageDestination(message); Recipients recipients = getSyncMessageDestination(message);
String body = message.getMessage().getBody().or(""); OutgoingTextMessage outgoingTextMessage = new OutgoingTextMessage(recipients, "", -1);
OutgoingTextMessage outgoingTextMessage = new OutgoingTextMessage(recipients, body);
OutgoingEndSessionMessage outgoingEndSessionMessage = new OutgoingEndSessionMessage(outgoingTextMessage); OutgoingEndSessionMessage outgoingEndSessionMessage = new OutgoingEndSessionMessage(outgoingTextMessage);
long threadId = DatabaseFactory.getThreadDatabase(context).getThreadIdFor(recipients); long threadId = DatabaseFactory.getThreadDatabase(context).getThreadIdFor(recipients);
@ -321,9 +320,7 @@ public class PushDecryptJob extends ContextJob {
long messageId = database.insertMessageOutbox(masterSecret, threadId, outgoingEndSessionMessage, long messageId = database.insertMessageOutbox(masterSecret, threadId, outgoingEndSessionMessage,
false, message.getTimestamp()); false, message.getTimestamp());
database.markAsSent(messageId); database.markAsSent(messageId, true);
database.markAsPush(messageId);
database.markAsSecure(messageId);
} }
if (smsMessageId.isPresent()) { if (smsMessageId.isPresent()) {