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
@ -81,7 +81,9 @@ public class Manager {
|
||||
JSONObject in = new JSONObject(IOUtils.toString(new FileInputStream(getFileName())));
|
||||
username = in.getString("username");
|
||||
password = in.getString("password");
|
||||
if (in.has("signalingKey")) {
|
||||
signalingKey = in.getString("signalingKey");
|
||||
}
|
||||
axolotlStore = new JsonAxolotlStore(in.getJSONObject("axolotlStore"));
|
||||
registered = in.getBoolean("registered");
|
||||
accountManager = new TextSecureAccountManager(URL, TRUST_STORE, username, password);
|
||||
|
Loading…
x
Reference in New Issue
Block a user