Add contact sync request protocol
This commit is contained in:
parent
f32ff58953
commit
2f935dfd5e
4 changed files with 49 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue