Don't auto-populate the relay field
According to server api docs, relay is optional when it is the same as our own server. // FREEBIE
This commit is contained in:
@@ -38900,7 +38900,6 @@ TextSecureServer = function () {
|
|||||||
************************************************/
|
************************************************/
|
||||||
// Staging server
|
// Staging server
|
||||||
var URL_BASE = "https://textsecure-service-staging.whispersystems.org";
|
var URL_BASE = "https://textsecure-service-staging.whispersystems.org";
|
||||||
self.relay = "textsecure-service-staging.whispersystems.org";
|
|
||||||
var ATTACHMENT_HOST = "whispersystems-textsecure-attachments-staging.s3.amazonaws.com";
|
var ATTACHMENT_HOST = "whispersystems-textsecure-attachments-staging.s3.amazonaws.com";
|
||||||
|
|
||||||
// This is the real server
|
// This is the real server
|
||||||
@@ -39151,8 +39150,6 @@ TextSecureServer = function () {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
var jsonData = { messages: messageArray };
|
var jsonData = { messages: messageArray };
|
||||||
if (messageArray[0].relay !== undefined)
|
|
||||||
jsonData.relay = messageArray[0].relay;
|
|
||||||
jsonData.timestamp = messageArray[0].timestamp;
|
jsonData.timestamp = messageArray[0].timestamp;
|
||||||
|
|
||||||
return doAjax({
|
return doAjax({
|
||||||
|
@@ -12,7 +12,6 @@ TextSecureServer = function () {
|
|||||||
************************************************/
|
************************************************/
|
||||||
// Staging server
|
// Staging server
|
||||||
var URL_BASE = "https://textsecure-service-staging.whispersystems.org";
|
var URL_BASE = "https://textsecure-service-staging.whispersystems.org";
|
||||||
self.relay = "textsecure-service-staging.whispersystems.org";
|
|
||||||
var ATTACHMENT_HOST = "whispersystems-textsecure-attachments-staging.s3.amazonaws.com";
|
var ATTACHMENT_HOST = "whispersystems-textsecure-attachments-staging.s3.amazonaws.com";
|
||||||
|
|
||||||
// This is the real server
|
// This is the real server
|
||||||
@@ -263,8 +262,6 @@ TextSecureServer = function () {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
var jsonData = { messages: messageArray };
|
var jsonData = { messages: messageArray };
|
||||||
if (messageArray[0].relay !== undefined)
|
|
||||||
jsonData.relay = messageArray[0].relay;
|
|
||||||
jsonData.timestamp = messageArray[0].timestamp;
|
jsonData.timestamp = messageArray[0].timestamp;
|
||||||
|
|
||||||
return doAjax({
|
return doAjax({
|
||||||
|
Reference in New Issue
Block a user