mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-26 18:05:34 +00:00
Display legacy message error when V1 message is received.
This commit is contained in:
@@ -133,4 +133,9 @@ public class WhisperMessage implements CiphertextMessage {
|
||||
return CiphertextMessage.WHISPER_TYPE;
|
||||
}
|
||||
|
||||
public static boolean isLegacy(byte[] message) {
|
||||
return message != null && message.length >= 1 &&
|
||||
Conversions.highBitsToInt(message[0]) <= CiphertextMessage.UNSUPPORTED_VERSION;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user