Skip to content

Commit d512757

Browse files
authored
Merge pull request #54 from elecordapp/elecord-id
App identifiers
2 parents b3a70e6 + ebe0976 commit d512757

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/identifiers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
* Please see LICENSE files in the repository root for full details.
77
*/
88

9-
export const ELEMENT_CLIENT_ID = "io.element.web";
9+
export const ELEMENT_CLIENT_ID = "app.elecord.web";

src/vector/platform/ElectronPlatform.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ interface SquirrelUpdate {
5151
updateURL: string;
5252
}
5353

54-
const SSO_ID_KEY = "element-desktop-ssoid";
54+
const SSO_ID_KEY = "elecord-desktop-ssoid";
5555

5656
const isMac = navigator.platform.toUpperCase().includes("MAC");
5757

@@ -141,7 +141,7 @@ export default class ElectronPlatform extends BasePlatform {
141141

142142
// try to flush the rageshake logs to indexeddb before quit.
143143
window.electron.on("before-quit", function () {
144-
logger.log("element-desktop closing");
144+
logger.log("elecord-desktop closing");
145145
rageshake.flush();
146146
});
147147

@@ -390,7 +390,7 @@ export default class ElectronPlatform extends BasePlatform {
390390

391391
public getSSOCallbackUrl(fragmentAfterLogin?: string): URL {
392392
const url = super.getSSOCallbackUrl(fragmentAfterLogin);
393-
url.protocol = "element";
393+
url.protocol = "elecord";
394394
url.searchParams.set(SSO_ID_KEY, this.ssoID);
395395
return url;
396396
}
@@ -452,12 +452,12 @@ export default class ElectronPlatform extends BasePlatform {
452452

453453
public get baseUrl(): string {
454454
// This configuration is element-desktop specific so the types here do not know about it
455-
return (SdkConfig.get() as unknown as Record<string, string>)["web_base_url"] ?? "https://app.element.io";
455+
return (SdkConfig.get() as unknown as Record<string, string>)["web_base_url"] ?? "https://web.elecord.app";
456456
}
457457

458458
public get defaultOidcClientUri(): string {
459459
// Default to element.io as our scheme `io.element.desktop` is within its scope on default MAS policies
460-
return "https://element.io";
460+
return "https://elecord.app";
461461
}
462462

463463
public async getOidcClientMetadata(): Promise<OidcRegistrationClientMetadata> {
@@ -477,7 +477,7 @@ export default class ElectronPlatform extends BasePlatform {
477477
*/
478478
public getOidcCallbackUrl(): URL {
479479
const url = super.getOidcCallbackUrl();
480-
url.protocol = "io.element.desktop";
480+
url.protocol = "app.elecord.desktop";
481481
// Trim the double slash into a single slash to comply with https://datatracker.ietf.org/doc/html/rfc8252#section-7.1
482482
if (url.href.startsWith(`${url.protocol}//`)) {
483483
url.href = url.href.replace("://", ":/");

0 commit comments

Comments
 (0)