Fixup refreshPreKeys and call it whenever a prekey is deleted

This commit is contained in:
lilia 2015-05-05 13:29:42 -07:00
parent 7d0aeac8cb
commit 45a61780af
3 changed files with 8 additions and 2 deletions

View file

@ -39443,7 +39443,7 @@ window.textsecure.api = function () {
refreshPreKeys: function() {
return textsecure.api.getMyKeys().then(function(preKeyCount) {
if (preKeyCount < 10) {
return generateKeys(100);
return generateKeys(100).then(TextSecureServer.registerKeys);
}
});
}