2017-06-07 01:03:09 +00:00
|
|
|
package org.thoughtcrime.securesms.sms;
|
|
|
|
|
|
|
|
|
2017-08-01 15:56:00 +00:00
|
|
|
import org.thoughtcrime.securesms.recipients.Recipient;
|
2017-06-07 01:03:09 +00:00
|
|
|
|
|
|
|
public class OutgoingIdentityDefaultMessage extends OutgoingTextMessage {
|
|
|
|
|
2017-08-01 15:56:00 +00:00
|
|
|
public OutgoingIdentityDefaultMessage(Recipient recipient) {
|
|
|
|
this(recipient, "");
|
2017-06-14 16:45:38 +00:00
|
|
|
}
|
|
|
|
|
2017-08-01 15:56:00 +00:00
|
|
|
private OutgoingIdentityDefaultMessage(Recipient recipient, String body) {
|
|
|
|
super(recipient, body, -1);
|
2017-06-07 01:03:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isIdentityDefault() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public OutgoingTextMessage withBody(String body) {
|
2017-08-01 15:56:00 +00:00
|
|
|
return new OutgoingIdentityDefaultMessage(getRecipient());
|
2017-06-07 01:03:09 +00:00
|
|
|
}
|
|
|
|
}
|