From 978866ea960635fb125f45311c1dbd0b2183a0ad Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 8 Oct 2019 08:43:40 +0200 Subject: [PATCH] dont assume id server when verifying phone numbers either --- src/AddThreepid.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/AddThreepid.js b/src/AddThreepid.js index dde0fbcbc9..f0781e26e9 100644 --- a/src/AddThreepid.js +++ b/src/AddThreepid.js @@ -224,13 +224,12 @@ export default class AddThreepid { throw result; } - const identityServerDomain = MatrixClientPeg.get().idBaseUrl.split("://")[1]; if (await MatrixClientPeg.get().doesServerSupportSeparateAddAndBind()) { if (this.bind) { await MatrixClientPeg.get().bindThreePid({ sid: this.sessionId, client_secret: this.clientSecret, - id_server: identityServerDomain, + id_server: getIdServerDomain(), id_access_token: await authClient.getAccessToken(), }); } else { @@ -243,7 +242,7 @@ export default class AddThreepid { await MatrixClientPeg.get().addThreePid({ sid: this.sessionId, client_secret: this.clientSecret, - id_server: identityServerDomain, + id_server: getIdServerDomain(), }, this.bind); } }