omit IRC in login response
This commit is contained in:
parent
80de0706bf
commit
b5fd8daf2e
@ -107,10 +107,13 @@ const createLoginResponse = (myAddress: string, account: IDatabaseAccountJson, b
|
|||||||
AmazonAuthToken: account.AmazonAuthToken,
|
AmazonAuthToken: account.AmazonAuthToken,
|
||||||
AmazonRefreshToken: account.AmazonRefreshToken,
|
AmazonRefreshToken: account.AmazonRefreshToken,
|
||||||
Nonce: account.Nonce,
|
Nonce: account.Nonce,
|
||||||
IRC: config.myIrcAddresses ?? [myAddress],
|
|
||||||
NRS: config.NRS,
|
NRS: config.NRS,
|
||||||
BuildLabel: buildLabel
|
BuildLabel: buildLabel
|
||||||
};
|
};
|
||||||
|
if (version_compare(buildLabel, "2015.05.14.16.29") >= 0) {
|
||||||
|
// U17 and up
|
||||||
|
resp.IRC = config.myIrcAddresses ?? [myAddress];
|
||||||
|
}
|
||||||
if (version_compare(buildLabel, "2018.11.08.14.45") >= 0) {
|
if (version_compare(buildLabel, "2018.11.08.14.45") >= 0) {
|
||||||
// U24 and up
|
// U24 and up
|
||||||
resp.ConsentNeeded = account.ConsentNeeded;
|
resp.ConsentNeeded = account.ConsentNeeded;
|
||||||
|
@ -51,7 +51,7 @@ export interface ILoginResponse extends IAccountAndLoginResponseCommons {
|
|||||||
platformCDNs?: string[];
|
platformCDNs?: string[];
|
||||||
NRS?: string[];
|
NRS?: string[];
|
||||||
DTLS?: number;
|
DTLS?: number;
|
||||||
IRC: string[];
|
IRC?: string[];
|
||||||
HUB?: string;
|
HUB?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user