Fix sync request argument check

Fixes #609

// FREEBIE
This commit is contained in:
lilia 2016-01-15 01:37:29 -08:00
parent 34ae81c30d
commit 30aa13079f
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;