Add contact sync request protocol

This commit is contained in:
lilia 2015-06-19 15:34:41 -07:00
parent f32ff58953
commit 2f935dfd5e
4 changed files with 49 additions and 4 deletions

View file

@ -35,7 +35,8 @@
return createAccount(number, verificationCode, identityKeyPair, true).
then(function() { return generateKeys(100); }).
then(TextSecureServer.registerKeys).
then(textsecure.registration.done);
then(textsecure.registration.done).
then(textsecure.messaging.sendRequestContactSyncMessage);
});
},
registerSecondDevice: function(setProvisioningUrl, confirmNumber, progressCallback) {
@ -74,7 +75,9 @@
});
}).then(function() {
return generateKeys(100, progressCallback);
}).then(TextSecureServer.registerKeys).then(textsecure.registration.done);
}).then(TextSecureServer.registerKeys).
then(textsecure.registration.done).
then(textsecure.messaging.sendRequestContactSyncMessage);
},
refreshPreKeys: function() {
return TextSecureServer.getMyKeys().then(function(preKeyCount) {