]> nmode's Git Repositories - signal-cli/commitdiff
Save account after creating profile key
authorAsamK <asamk@gmx.de>
Sun, 25 Nov 2018 21:07:48 +0000 (22:07 +0100)
committerAsamK <asamk@gmx.de>
Sun, 25 Nov 2018 21:07:48 +0000 (22:07 +0100)
src/main/java/org/asamk/signal/manager/Manager.java

index cb49d4630218d467d146a72a2e5dfe9aaf7e3b0a..f18cb219df05cac96a71d89fdbb59e4bf4e90cd1 100644 (file)
@@ -161,6 +161,7 @@ public class Manager implements Signal {
         if (account.getProfileKey() == null) {
             // Old config file, creating new profile key
             account.setProfileKey(KeyUtils.createProfileKey());
         if (account.getProfileKey() == null) {
             // Old config file, creating new profile key
             account.setProfileKey(KeyUtils.createProfileKey());
+            account.save();
         }
     }
 
         }
     }