mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-22 19:29:36 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user