mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-20 13:28:27 +00:00

1) Added SMS transport support. 2) Keep track of whether a PreKeyBundle message has gotten a response, and send them as subsequent messages until one has been received.
20 lines
423 B
Java
20 lines
423 B
Java
package org.thoughtcrime.securesms.sms;
|
|
|
|
|
|
public class OutgoingPrekeyBundleMessage extends OutgoingTextMessage {
|
|
|
|
public OutgoingPrekeyBundleMessage(OutgoingTextMessage message, String body) {
|
|
super(message, body);
|
|
}
|
|
|
|
@Override
|
|
public boolean isPreKeyBundle() {
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public OutgoingTextMessage withBody(String body) {
|
|
return new OutgoingPrekeyBundleMessage(this, body);
|
|
}
|
|
}
|