From f1a1a819baa270b5f9c258e085b4e2362e868f39 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 10 Mar 2017 10:41:50 -0800 Subject: [PATCH] Stop parsing attachment ids from attachment urls See 2111294 Attachment ids are now available in string form from the server response to `putAttachment`. // FREEBIE --- js/libtextsecure.js | 2 +- libtextsecure/api.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)); },