Maintain placeholder encrypted body to avoid processing error

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-06-14 09:45:38 -07:00
parent fa64c5de62
commit 2dbeebac77
2 changed files with 11 additions and 3 deletions

View File

@ -6,7 +6,11 @@ import org.thoughtcrime.securesms.recipients.Recipients;
public class OutgoingIdentityDefaultMessage extends OutgoingTextMessage { public class OutgoingIdentityDefaultMessage extends OutgoingTextMessage {
public OutgoingIdentityDefaultMessage(Recipients recipients) { public OutgoingIdentityDefaultMessage(Recipients recipients) {
super(recipients, "", -1); this(recipients, "");
}
private OutgoingIdentityDefaultMessage(Recipients recipients, String body) {
super(recipients, body, -1);
} }
@Override @Override

View File

@ -6,7 +6,11 @@ import org.thoughtcrime.securesms.recipients.Recipients;
public class OutgoingIdentityVerifiedMessage extends OutgoingTextMessage { public class OutgoingIdentityVerifiedMessage extends OutgoingTextMessage {
public OutgoingIdentityVerifiedMessage(Recipients recipients) { public OutgoingIdentityVerifiedMessage(Recipients recipients) {
super(recipients, "", -1); this(recipients, "");
}
private OutgoingIdentityVerifiedMessage(Recipients recipients, String body) {
super(recipients, body, -1);
} }
@Override @Override
@ -16,6 +20,6 @@ public class OutgoingIdentityVerifiedMessage extends OutgoingTextMessage {
@Override @Override
public OutgoingTextMessage withBody(String body) { public OutgoingTextMessage withBody(String body) {
return new OutgoingIdentityVerifiedMessage(getRecipients()); return new OutgoingIdentityVerifiedMessage(getRecipients(), body);
} }
} }