mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-21 14:08:38 +00:00
Remove V1 code.
This commit is contained in:
@@ -6,6 +6,7 @@ public class IncomingKeyExchangeMessage extends IncomingTextMessage {
|
||||
private boolean isProcessed;
|
||||
private boolean isCorrupted;
|
||||
private boolean isInvalidVersion;
|
||||
private boolean isLegacyVersion;
|
||||
|
||||
public IncomingKeyExchangeMessage(IncomingTextMessage base, String newBody) {
|
||||
super(base, newBody);
|
||||
@@ -15,6 +16,7 @@ public class IncomingKeyExchangeMessage extends IncomingTextMessage {
|
||||
this.isProcessed = ((IncomingKeyExchangeMessage)base).isProcessed;
|
||||
this.isCorrupted = ((IncomingKeyExchangeMessage)base).isCorrupted;
|
||||
this.isInvalidVersion = ((IncomingKeyExchangeMessage)base).isInvalidVersion;
|
||||
this.isLegacyVersion = ((IncomingKeyExchangeMessage)base).isLegacyVersion;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +25,10 @@ public class IncomingKeyExchangeMessage extends IncomingTextMessage {
|
||||
return new IncomingKeyExchangeMessage(this, messageBody);
|
||||
}
|
||||
|
||||
public boolean isIdentityUpdate() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isStale() {
|
||||
return isStale;
|
||||
}
|
||||
@@ -55,6 +61,14 @@ public class IncomingKeyExchangeMessage extends IncomingTextMessage {
|
||||
this.isInvalidVersion = isInvalidVersion;
|
||||
}
|
||||
|
||||
public boolean isLegacyVersion() {
|
||||
return isLegacyVersion;
|
||||
}
|
||||
|
||||
public void setLegacyVersion(boolean isLegacyVersion) {
|
||||
this.isLegacyVersion = isLegacyVersion;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isKeyExchange() {
|
||||
return true;
|
||||
|
@@ -179,10 +179,6 @@ public class IncomingTextMessage implements Parcelable {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isIdentityUpdate() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isPush() {
|
||||
return push;
|
||||
}
|
||||
|
Reference in New Issue
Block a user