From 4fc4573de4abf6bdb612540caf0a591b39e86b44 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 31 Jul 2015 11:11:22 -0700 Subject: [PATCH] Don't try to sync after single device registration There's no other device to sync to. :p --- js/libtextsecure.js | 4 +--- libtextsecure/account_manager.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 1da81404ba..1fe3fd1e84 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -39378,9 +39378,7 @@ TextSecureServer = function () { return createAccount(number, verificationCode, identityKeyPair). then(function() { return generateKeys(100); }). then(TextSecureServer.registerKeys). - then(textsecure.registration.done). - then(textsecure.messaging.sendRequestContactSyncMessage). - then(textsecure.messaging.sendRequestGroupSyncMessage); + then(textsecure.registration.done); }); }, registerSecondDevice: function(setProvisioningUrl, confirmNumber, progressCallback) { diff --git a/libtextsecure/account_manager.js b/libtextsecure/account_manager.js index 21f9a66ca0..5d414ba4dc 100644 --- a/libtextsecure/account_manager.js +++ b/libtextsecure/account_manager.js @@ -35,9 +35,7 @@ return createAccount(number, verificationCode, identityKeyPair). then(function() { return generateKeys(100); }). then(TextSecureServer.registerKeys). - then(textsecure.registration.done). - then(textsecure.messaging.sendRequestContactSyncMessage). - then(textsecure.messaging.sendRequestGroupSyncMessage); + then(textsecure.registration.done); }); }, registerSecondDevice: function(setProvisioningUrl, confirmNumber, progressCallback) {