]> nmode's Git Repositories - signal-cli/commitdiff
Fix SignalAccount initialization
authorAsamK <asamk@gmx.de>
Tue, 8 Nov 2022 16:18:03 +0000 (17:18 +0100)
committerAsamK <asamk@gmx.de>
Tue, 8 Nov 2022 16:18:24 +0000 (17:18 +0100)
Fixes #1092

lib/src/main/java/org/asamk/signal/manager/storage/SignalAccount.java

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