fix: login failure on U16 #1991

Merged
Sainan merged 2 commits from u16 into main 2025-05-06 02:29:03 -07:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit b5fd8daf2e - Show all commits

View File

@ -107,10 +107,13 @@ const createLoginResponse = (myAddress: string, account: IDatabaseAccountJson, b
AmazonAuthToken: account.AmazonAuthToken,
AmazonRefreshToken: account.AmazonRefreshToken,
Nonce: account.Nonce,
IRC: config.myIrcAddresses ?? [myAddress],
NRS: config.NRS,
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) {
// U24 and up
resp.ConsentNeeded = account.ConsentNeeded;

View File

@ -51,7 +51,7 @@ export interface ILoginResponse extends IAccountAndLoginResponseCommons {
platformCDNs?: string[];
NRS?: string[];
DTLS?: number;
IRC: string[];
IRC?: string[];
HUB?: string;
}