Remove relay check from sendmessage
We don't currently store any relay information about devices, and // FREEBIE
This commit is contained in:
parent
f16803018c
commit
95935f70ee
2 changed files with 0 additions and 20 deletions
|
@ -38572,12 +38572,6 @@ OutgoingMessage.prototype = {
|
||||||
if (devicesForNumber.length == 0) {
|
if (devicesForNumber.length == 0) {
|
||||||
return this.registerError(number, "Got empty device list when loading device keys", null);
|
return this.registerError(number, "Got empty device list when loading device keys", null);
|
||||||
}
|
}
|
||||||
var relay = devicesForNumber[0].relay;
|
|
||||||
for (var i=1; i < devicesForNumber.length; ++i) {
|
|
||||||
if (devicesForNumber[i].relay !== relay) {
|
|
||||||
throw new Error("Mismatched relays for number " + number);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this.doSendMessage(number, devicesForNumber, recurse);
|
return this.doSendMessage(number, devicesForNumber, recurse);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
@ -38686,10 +38680,6 @@ OutgoingMessage.prototype = {
|
||||||
destinationRegistrationId: registrationId
|
destinationRegistrationId: registrationId
|
||||||
};
|
};
|
||||||
|
|
||||||
if (device.relay !== undefined) {
|
|
||||||
json.relay = device.relay;
|
|
||||||
}
|
|
||||||
|
|
||||||
var content = btoa(encryptedMsg.body);
|
var content = btoa(encryptedMsg.body);
|
||||||
if (this.legacy) {
|
if (this.legacy) {
|
||||||
json.body = content;
|
json.body = content;
|
||||||
|
|
|
@ -38,12 +38,6 @@ OutgoingMessage.prototype = {
|
||||||
if (devicesForNumber.length == 0) {
|
if (devicesForNumber.length == 0) {
|
||||||
return this.registerError(number, "Got empty device list when loading device keys", null);
|
return this.registerError(number, "Got empty device list when loading device keys", null);
|
||||||
}
|
}
|
||||||
var relay = devicesForNumber[0].relay;
|
|
||||||
for (var i=1; i < devicesForNumber.length; ++i) {
|
|
||||||
if (devicesForNumber[i].relay !== relay) {
|
|
||||||
throw new Error("Mismatched relays for number " + number);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this.doSendMessage(number, devicesForNumber, recurse);
|
return this.doSendMessage(number, devicesForNumber, recurse);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
@ -152,10 +146,6 @@ OutgoingMessage.prototype = {
|
||||||
destinationRegistrationId: registrationId
|
destinationRegistrationId: registrationId
|
||||||
};
|
};
|
||||||
|
|
||||||
if (device.relay !== undefined) {
|
|
||||||
json.relay = device.relay;
|
|
||||||
}
|
|
||||||
|
|
||||||
var content = btoa(encryptedMsg.body);
|
var content = btoa(encryptedMsg.body);
|
||||||
if (this.legacy) {
|
if (this.legacy) {
|
||||||
json.body = content;
|
json.body = content;
|
||||||
|
|
Loading…
Reference in a new issue