mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
Maintain placeholder encrypted body to avoid processing error
// FREEBIE
This commit is contained in:
parent
fa64c5de62
commit
2dbeebac77
@ -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
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user