From 30aa13079fd9844966f491e0b60907a9d85411a2 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 15 Jan 2016 01:37:29 -0800 Subject: [PATCH] Fix sync request argument check Fixes #609 // FREEBIE --- js/libtextsecure.js | 2 +- libtextsecure/sync_request.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/libtextsecure.js b/js/libtextsecure.js index b3e0db84..e84ac0ae 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -37718,7 +37718,7 @@ textsecure.MessageSender.prototype = { window.textsecure = window.textsecure || {}; function SyncRequest(sender, receiver) { - if (!(sender instanceof MessageSender) || !(receiver instanceof MessageReceiver)) { + if (!(sender instanceof textsecure.MessageSender) || !(receiver instanceof textsecure.MessageReceiver)) { throw new Error('Tried to construct a SyncRequest without MessageSender and MessageReceiver'); } this.receiver = receiver; diff --git a/libtextsecure/sync_request.js b/libtextsecure/sync_request.js index bbb0dd85..cf84d9f3 100644 --- a/libtextsecure/sync_request.js +++ b/libtextsecure/sync_request.js @@ -8,7 +8,7 @@ window.textsecure = window.textsecure || {}; function SyncRequest(sender, receiver) { - if (!(sender instanceof MessageSender) || !(receiver instanceof MessageReceiver)) { + if (!(sender instanceof textsecure.MessageSender) || !(receiver instanceof textsecure.MessageReceiver)) { throw new Error('Tried to construct a SyncRequest without MessageSender and MessageReceiver'); } this.receiver = receiver;