mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01: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
24 lines
592 B
Java
24 lines
592 B
Java
package org.thoughtcrime.securesms.sms;
|
|
|
|
import org.thoughtcrime.securesms.recipients.Recipient;
|
|
|
|
public class OutgoingKeyExchangeMessage extends OutgoingTextMessage {
|
|
|
|
public OutgoingKeyExchangeMessage(Recipient recipient, String message) {
|
|
super(recipient, message, -1);
|
|
}
|
|
|
|
private OutgoingKeyExchangeMessage(OutgoingKeyExchangeMessage base, String body) {
|
|
super(base, body);
|
|
}
|
|
|
|
@Override
|
|
public boolean isKeyExchange() {
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public OutgoingTextMessage withBody(String body) {
|
|
return new OutgoingKeyExchangeMessage(this, body);
|
|
}
|
|
}
|