Fix SignalAccount initialization

Fixes #1092
This commit is contained in:
AsamK 2022-11-08 17:18:03 +01:00
parent 8997d7f91f
commit 5e1fc79c33

View file

@ -506,6 +506,7 @@ public class SignalAccount implements Closeable {
) throws IOException { ) throws IOException {
this.dataPath = dataPath; this.dataPath = dataPath;
this.accountPath = accountPath; this.accountPath = accountPath;
this.settings = settings;
final JsonNode rootNode; final JsonNode rootNode;
synchronized (fileChannel) { synchronized (fileChannel) {
fileChannel.position(0); fileChannel.position(0);
@ -685,7 +686,6 @@ public class SignalAccount implements Closeable {
this.aciIdentityKeyPair = aciIdentityKeyPair; this.aciIdentityKeyPair = aciIdentityKeyPair;
this.localRegistrationId = registrationId; this.localRegistrationId = registrationId;
this.settings = settings;
migratedLegacyConfig = loadLegacyStores(rootNode, legacySignalProtocolStore) || migratedLegacyConfig; migratedLegacyConfig = loadLegacyStores(rootNode, legacySignalProtocolStore) || migratedLegacyConfig;