if (rootNode.hasNonNull("version")) {
var accountVersion = rootNode.get("version").asInt(1);
if (accountVersion > CURRENT_STORAGE_VERSION) {
if (rootNode.hasNonNull("version")) {
var accountVersion = rootNode.get("version").asInt(1);
if (accountVersion > CURRENT_STORAGE_VERSION) {
throw new IOException("Config file was created by a no longer supported older version!");
}
previousStorageVersion = accountVersion;
throw new IOException("Config file was created by a no longer supported older version!");
}
previousStorageVersion = accountVersion;
final var legacySignalProtocolStore = rootNode.hasNonNull("axolotlStore")
? jsonProcessor.convertValue(Utils.getNotNullNode(rootNode, "axolotlStore"),
LegacyJsonSignalProtocolStore.class)
final var legacySignalProtocolStore = rootNode.hasNonNull("axolotlStore")
? jsonProcessor.convertValue(Utils.getNotNullNode(rootNode, "axolotlStore"),
LegacyJsonSignalProtocolStore.class)