}
private Manager initManager(
- String number, String accountPath
+ String number,
+ String accountPath
) throws IOException, NotRegisteredException, AccountCheckException {
if (accountPath == null) {
throw new NotRegisteredException();
}
public RegistrationManager initRegistrationManager(
- String number, Consumer<Manager> newManagerListener
+ String number,
+ Consumer<Manager> newManagerListener
) throws IOException {
final var accountPath = accountsStore.getPathByNumber(number);
if (accountPath == null || !SignalAccount.accountFileExists(pathConfig.dataPath(), accountPath)) {
pniIdentityKey,
profileKey,
settings);
+ account.initDatabase();
return new RegistrationManagerImpl(account,
pathConfig,
account.close();
throw new IOException("Number in account file doesn't match expected number: " + account.getNumber());
}
+ account.initDatabase();
return new RegistrationManagerImpl(account,
pathConfig,