mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 18:45:19 +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;
|
|
}
|
|
|
|
}
|