mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-13 11:53:38 +00:00
6da86e482d
Allow source selection for sending SMS/MMS, and display the SIM that received SMS/MMS. Fixes #555 Closes #5199 // FREEBIE
25 lines
596 B
Java
25 lines
596 B
Java
package org.thoughtcrime.securesms.sms;
|
|
|
|
import org.thoughtcrime.securesms.recipients.Recipients;
|
|
|
|
public class OutgoingKeyExchangeMessage extends OutgoingTextMessage {
|
|
|
|
public OutgoingKeyExchangeMessage(Recipients recipients, String message) {
|
|
super(recipients, 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);
|
|
}
|
|
}
|