mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Initialize database before registering
This commit is contained in:
parent
44c9aded65
commit
67d8ffcde5
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue