mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
Fix the build
// FREEBIE
This commit is contained in:
parent
5e02715a2c
commit
a8366387ab
@ -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()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user