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:
parent
6123c419d0
commit
c8e51563a0
3 changed files with 13 additions and 8 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue