diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 7083996d..8c33acbd 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -37889,7 +37889,7 @@ var TextSecureServer = (function() { data : encryptedBin, processData : false, }).then(function() { - return match[1]; + return response.idString; }.bind(this)); }.bind(this)); }, diff --git a/libtextsecure/api.js b/libtextsecure/api.js index 01634d7f..9609fc6a 100644 --- a/libtextsecure/api.js +++ b/libtextsecure/api.js @@ -391,7 +391,7 @@ var TextSecureServer = (function() { data : encryptedBin, processData : false, }).then(function() { - return match[1]; + return response.idString; }.bind(this)); }.bind(this)); },