mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-28 12:35:17 +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
26 lines
599 B
Java
26 lines
599 B
Java
package org.thoughtcrime.securesms.sms;
|
|
|
|
|
|
import org.thoughtcrime.securesms.recipients.Recipient;
|
|
|
|
public class OutgoingIdentityVerifiedMessage extends OutgoingTextMessage {
|
|
|
|
public OutgoingIdentityVerifiedMessage(Recipient recipient) {
|
|
this(recipient, "");
|
|
}
|
|
|
|
private OutgoingIdentityVerifiedMessage(Recipient recipient, String body) {
|
|
super(recipient, body, -1);
|
|
}
|
|
|
|
@Override
|
|
public boolean isIdentityVerified() {
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public OutgoingTextMessage withBody(String body) {
|
|
return new OutgoingIdentityVerifiedMessage(getRecipient(), body);
|
|
}
|
|
}
|