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 OutgoingIdentityVerifiedMessage extends OutgoingTextMessage {
|
|
|
|
|
2017-08-01 15:56:00 +00:00
|
|
|
public OutgoingIdentityVerifiedMessage(Recipient recipient) {
|
|
|
|
this(recipient, "");
|
2017-06-14 16:45:38 +00:00
|
|
|
}
|
|
|
|
|
2017-08-01 15:56:00 +00:00
|
|
|
private OutgoingIdentityVerifiedMessage(Recipient recipient, String body) {
|
|
|
|
super(recipient, body, -1);
|
2017-06-07 01:03:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isIdentityVerified() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public OutgoingTextMessage withBody(String body) {
|
2017-08-01 15:56:00 +00:00
|
|
|
return new OutgoingIdentityVerifiedMessage(getRecipient(), body);
|
2017-06-07 01:03:09 +00:00
|
|
|
}
|
|
|
|
}
|