Skip to content

Detect home server from matrix id#810

Open
Kaki-In wants to merge 22 commits into
element-hq:masterfrom
Kaki-In:detect-hs-from-mxid
Open

Detect home server from matrix id#810
Kaki-In wants to merge 22 commits into
element-hq:masterfrom
Kaki-In:detect-hs-from-mxid

Conversation

@Kaki-In
Copy link
Copy Markdown
Contributor

@Kaki-In Kaki-In commented Jul 21, 2022

Detect home server from matrix id

Added functionnality :

  • you can now enter the user matrix id (e.g. @username:server.local) in the login input.
  • if the home server that you've entered into youre id is not the same that those into the home server input, it will be use instead to connect to the default matrix server.

Should fix this issue (#479).

@Kaki-In Kaki-In changed the title Detect hs from mxid Detect home server from matrix id Jul 21, 2022
Copy link
Copy Markdown
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few comments, haven't done a full review yet.

Comment thread src/domain/login/PasswordLoginViewModel.js Outdated
Comment thread src/domain/login/PasswordLoginViewModel.js Outdated
Kaki-In added 4 commits July 25, 2022 15:58
…s) :

 - fix methods miss;
 - corrected some identation mistakes.
PasswordLoginViewModel.parseUsernameLogin() should return the username, not the servername.
Copy link
Copy Markdown
Member

@MidhunSureshR MidhunSureshR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments and questions:

Comment thread src/platform/web/ui/login/PasswordLoginView.js Outdated
Comment thread src/platform/web/ui/login/PasswordLoginView.js Outdated
Comment thread src/domain/login/PasswordLoginViewModel.js Outdated
Comment thread src/domain/login/PasswordLoginViewModel.js Outdated
Comment thread src/domain/login/PasswordLoginViewModel.js Outdated
Comment thread src/domain/login/PasswordLoginViewModel.js Outdated
Comment thread src/platform/web/ui/login/PasswordLoginView.js Outdated
Comment thread src/matrix/common.js
Copy link
Copy Markdown
Member

@MidhunSureshR MidhunSureshR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some more ts changes:

Comment thread src/domain/login/LoginViewModel.ts Outdated
Comment thread src/domain/login/LoginViewModel.ts Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support .well-known in the way the spec says

3 participants