Refactor initial sync codepath to application layer

To reduce dependence on the message sending module, AccountManager
should send no sync requests itself.
This commit is contained in:
lilia 2015-08-31 10:40:25 -07:00
parent 6123c419d0
commit c8e51563a0
3 changed files with 13 additions and 8 deletions

View file

@ -39279,9 +39279,7 @@ TextSecureServer = function () {
}).then(function() {
return generateKeys(100, progressCallback);
}).then(TextSecureServer.registerKeys).
then(textsecure.registration.done).
then(textsecure.messaging.sendRequestContactSyncMessage).
then(textsecure.messaging.sendRequestGroupSyncMessage);
then(textsecure.registration.done);
},
refreshPreKeys: function() {
return TextSecureServer.getMyKeys().then(function(preKeyCount) {