Store account list in accounts.json file

This commit is contained in:
AsamK 2022-02-10 18:27:24 +01:00
parent ff6b733cd0
commit 0476895c3d
5 changed files with 208 additions and 21 deletions

View file

@ -163,10 +163,15 @@ public class App {
? TrustNewIdentity.ON_FIRST_USE
: trustNewIdentityCli == TrustNewIdentityCli.ALWAYS ? TrustNewIdentity.ALWAYS : TrustNewIdentity.NEVER;
final SignalAccountFiles signalAccountFiles = new SignalAccountFiles(configPath,
serviceEnvironment,
BaseConfig.USER_AGENT,
trustNewIdentity);
final SignalAccountFiles signalAccountFiles;
try {
signalAccountFiles = new SignalAccountFiles(configPath,
serviceEnvironment,
BaseConfig.USER_AGENT,
trustNewIdentity);
} catch (IOException e) {
throw new IOErrorException("Failed to read local accounts list", e);
}
if (command instanceof ProvisioningCommand provisioningCommand) {
if (account != null) {