Initialize database before registering

This commit is contained in:
AsamK 2023-11-03 20:19:41 +01:00
parent 790b7f1a2f
commit 41bff4a0a7

View file

@ -169,6 +169,7 @@ public class SignalAccountFiles {
pniIdentityKey, pniIdentityKey,
profileKey, profileKey,
settings); settings);
account.initDatabase();
return new RegistrationManagerImpl(account, return new RegistrationManagerImpl(account,
pathConfig, pathConfig,
@ -183,6 +184,7 @@ public class SignalAccountFiles {
account.close(); account.close();
throw new IOException("Number in account file doesn't match expected number: " + account.getNumber()); throw new IOException("Number in account file doesn't match expected number: " + account.getNumber());
} }
account.initDatabase();
return new RegistrationManagerImpl(account, return new RegistrationManagerImpl(account,
pathConfig, pathConfig,