mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 17:27:45 +00:00
375207f073
Eliminate the concept of 'Recipients' (plural). There is now just a 'Recipient', which contains an Address that is either an individual or a group ID. MMS groups now exist as part of the group database, just like push groups. // FREEBIE
25 lines
605 B
Java
25 lines
605 B
Java
package org.thoughtcrime.securesms.sms;
|
|
|
|
import org.thoughtcrime.securesms.recipients.Recipient;
|
|
|
|
public class OutgoingEncryptedMessage extends OutgoingTextMessage {
|
|
|
|
public OutgoingEncryptedMessage(Recipient recipient, String body, long expiresIn) {
|
|
super(recipient, 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);
|
|
}
|
|
}
|