diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 017571e0b72..30e628f4863 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -36402,7 +36402,6 @@ var TextSecureServer = (function() { httpType : 'GET', urlParameters : "/" + number + "/" + deviceId, }).then(function(res) { - var promises = []; res.identityKey = StringView.base64ToBytes(res.identityKey); for (var i = 0; i < res.devices.length; i++) { res.devices[i].signedPreKey.publicKey = StringView.base64ToBytes(res.devices[i].signedPreKey.publicKey); diff --git a/libtextsecure/api.js b/libtextsecure/api.js index 0ddb4094c86..b0d5967fea2 100644 --- a/libtextsecure/api.js +++ b/libtextsecure/api.js @@ -245,7 +245,6 @@ var TextSecureServer = (function() { httpType : 'GET', urlParameters : "/" + number + "/" + deviceId, }).then(function(res) { - var promises = []; res.identityKey = StringView.base64ToBytes(res.identityKey); for (var i = 0; i < res.devices.length; i++) { res.devices[i].signedPreKey.publicKey = StringView.base64ToBytes(res.devices[i].signedPreKey.publicKey);