Refactor TextSecureServer for storage

Following the pattern from previous commit, let the server class accept
a url and login credentials from the caller. Then integrate into
MessageReceiver and AccountManager.

// FREEBIE
This commit is contained in:
lilia 2015-08-28 15:37:45 -07:00
parent 09bd6c7824
commit 98aa5156b0
7 changed files with 609 additions and 814 deletions

View file

@ -65,7 +65,7 @@
$('#init-setup').show().addClass('in');
$('#status').text("Connecting...");
var accountManager = new bg.textsecure.AccountManager();
var accountManager = new bg.textsecure.AccountManager(bg.TEXT_SECURE_SERVER_URL);
accountManager.registerSecondDevice(setProvisioningUrl, confirmNumber, incrementCounter).then(function() {
var launch = function() {
bg.openInbox();