mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 17:27:45 +00:00
ea0945d406
// FREEBIE
28 lines
623 B
Java
28 lines
623 B
Java
package org.thoughtcrime.securesms.sms;
|
|
|
|
public class IncomingPreKeyBundleMessage extends IncomingTextMessage {
|
|
|
|
private final boolean legacy;
|
|
|
|
public IncomingPreKeyBundleMessage(IncomingTextMessage base, String newBody, boolean legacy) {
|
|
super(base, newBody);
|
|
this.legacy = legacy;
|
|
}
|
|
|
|
@Override
|
|
public IncomingPreKeyBundleMessage withMessageBody(String messageBody) {
|
|
return new IncomingPreKeyBundleMessage(this, messageBody, legacy);
|
|
}
|
|
|
|
@Override
|
|
public boolean isLegacyPreKeyBundle() {
|
|
return legacy;
|
|
}
|
|
|
|
@Override
|
|
public boolean isContentPreKeyBundle() {
|
|
return !legacy;
|
|
}
|
|
|
|
}
|