diff --git a/js/libtextsecure.js b/js/libtextsecure.js index b96d184f89d1..075bd2343c4b 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -39353,7 +39353,7 @@ TextSecureServer = function () { }, registerSingleDevice: function(number, verificationCode) { return axolotl.util.generateIdentityKeyPair().then(function(identityKeyPair) { - return createAccount(number, verificationCode, identityKeyPair, true). + return createAccount(number, verificationCode, identityKeyPair). then(function() { return generateKeys(100); }). then(TextSecureServer.registerKeys). then(textsecure.registration.done). diff --git a/libtextsecure/account_manager.js b/libtextsecure/account_manager.js index 0c8821c66217..70e24d596fe8 100644 --- a/libtextsecure/account_manager.js +++ b/libtextsecure/account_manager.js @@ -32,7 +32,7 @@ }, registerSingleDevice: function(number, verificationCode) { return axolotl.util.generateIdentityKeyPair().then(function(identityKeyPair) { - return createAccount(number, verificationCode, identityKeyPair, true). + return createAccount(number, verificationCode, identityKeyPair). then(function() { return generateKeys(100); }). then(TextSecureServer.registerKeys). then(textsecure.registration.done).