diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 4fafa536..c31aa8c2 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -37119,7 +37119,7 @@ MessageReceiver.prototype.extend({ return p.then(function() { return this.processDecrypted(finalMessage); - }); + }.bind(this); }.bind(this)); }, handleEndSession: function(number) { diff --git a/libtextsecure/message_receiver.js b/libtextsecure/message_receiver.js index 421811e8..884cf40a 100644 --- a/libtextsecure/message_receiver.js +++ b/libtextsecure/message_receiver.js @@ -299,7 +299,7 @@ MessageReceiver.prototype.extend({ return p.then(function() { return this.processDecrypted(finalMessage); - }); + }.bind(this); }.bind(this)); }, handleEndSession: function(number) {