mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
d7e4928f22
// FREEBIE
25 lines
609 B
Java
25 lines
609 B
Java
package org.thoughtcrime.securesms.sms;
|
|
|
|
import org.thoughtcrime.securesms.recipients.Recipients;
|
|
|
|
public class OutgoingEncryptedMessage extends OutgoingTextMessage {
|
|
|
|
public OutgoingEncryptedMessage(Recipients recipients, String body, long expiresIn) {
|
|
super(recipients, body, expiresIn, -1);
|
|
}
|
|
|
|
private OutgoingEncryptedMessage(OutgoingEncryptedMessage base, String body) {
|
|
super(base, body);
|
|
}
|
|
|
|
@Override
|
|
public boolean isSecureMessage() {
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public OutgoingTextMessage withBody(String body) {
|
|
return new OutgoingEncryptedMessage(this, body);
|
|
}
|
|
}
|