mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Load json even if signalingKey is missing
Is the case when the account is registered, but not verified
This commit is contained in:
parent
73e8c4cabf
commit
9d71313a0c
1 changed files with 3 additions and 1 deletions
|
@ -81,7 +81,9 @@ public class Manager {
|
||||||
JSONObject in = new JSONObject(IOUtils.toString(new FileInputStream(getFileName())));
|
JSONObject in = new JSONObject(IOUtils.toString(new FileInputStream(getFileName())));
|
||||||
username = in.getString("username");
|
username = in.getString("username");
|
||||||
password = in.getString("password");
|
password = in.getString("password");
|
||||||
signalingKey = in.getString("signalingKey");
|
if (in.has("signalingKey")) {
|
||||||
|
signalingKey = in.getString("signalingKey");
|
||||||
|
}
|
||||||
axolotlStore = new JsonAxolotlStore(in.getJSONObject("axolotlStore"));
|
axolotlStore = new JsonAxolotlStore(in.getJSONObject("axolotlStore"));
|
||||||
registered = in.getBoolean("registered");
|
registered = in.getBoolean("registered");
|
||||||
accountManager = new TextSecureAccountManager(URL, TRUST_STORE, username, password);
|
accountManager = new TextSecureAccountManager(URL, TRUST_STORE, username, password);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue