Skip to content

Commit ac3728a

Browse files
committed
Trivia: Matrix client URLs
1 parent 8c8b222 commit ac3728a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/session.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default class MatrixSession {
2727

2828
this.logger.info('Reusing existing session: authentication information found in local storage, for user: ' + userId)
2929
this.client = sdk.createClient({
30-
baseUrl: this.matrixServer || 'https://matrix.org',
30+
baseUrl: this.matrixServer || 'https://matrix-client.matrix.org',
3131
accessToken,
3232
userId,
3333
deviceId,
@@ -42,7 +42,7 @@ export default class MatrixSession {
4242
login (cb) {
4343
const that = this
4444
this.client = sdk.createClient({
45-
baseUrl: this.matrixServer || 'https://matrix.org'
45+
baseUrl: this.matrixServer || 'https://matrix-client.matrix.org'
4646
})
4747
this.client.loginRequest({
4848
user: this.matrixUser || this.botName,
@@ -51,7 +51,7 @@ export default class MatrixSession {
5151
}).then((data) => {
5252
that.logger.debug(`Logged in ${data.user_id} on device ${data.device_id}`)
5353
that.client = sdk.createClient({
54-
baseUrl: that.matrixServer || 'https://matrix.org',
54+
baseUrl: that.matrixServer || 'https://matrix-client.matrix.org',
5555
accessToken: data.access_token,
5656
userId: data.user_id,
5757
deviceId: data.device_id,

0 commit comments

Comments
 (0)