This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 828
Provide a more detailed error message than "No known servers" #6048
Merged
florianduros
merged 23 commits into
matrix-org:develop
from
aaronraimist:no-known-servers
Feb 24, 2023
Merged
Changes from 9 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
efd793c
Provide a more detailed error message than "No known servers"
aaronraimist 513300a
Merge branch 'develop' into no-known-servers
aaronraimist bcb12af
Merge branch 'develop' into no-known-servers
aaronraimist 9b33261
Fix PR since file was refactored
aaronraimist 3f4ee2f
Fix formatting
aaronraimist 72f9d7a
Merge branch 'develop' into no-known-servers
aaronraimist b6aa7e6
lint
aaronraimist bfb5707
Merge branch 'develop' into no-known-servers
aaronraimist 170da1b
Update src/stores/RoomViewStore.tsx
aaronraimist 26f974d
Merge branch 'develop' into no-known-servers
aaronraimist c58fe0b
Add example identifiers and a more detailed explanation
aaronraimist 0c52759
Lint
aaronraimist 0b3f050
Lint
aaronraimist 78eb743
Merge branch 'develop' into no-known-servers
aaronraimist c72ac81
Revert back to original wording (except s/alias/address)
aaronraimist 2791011
Prettier
aaronraimist 030ced3
Merge branch 'develop' into no-known-servers
florianduros 6c72541
Fix ts error
florianduros 19ad1a2
Add snapshot test
florianduros ce8c0d9
Check the Modal props
florianduros a99f514
Add test case to reach quality gate
florianduros b2b4732
Merge branch 'develop' into no-known-servers
florianduros e3982da
Merge branch 'develop' into no-known-servers
florianduros File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related to https://github.com/vector-im/element-web/issues/24475
Maybe some language inspiration in this:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not all rooms have an alias and you can stumble upon a room ID in an unlimited number of ways. The user obviously tried to use a room ID here and we should make it possible for them to continue with what they have.
Leaving the user helpless to go ask someone else for a room alias isn't very empowering.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have any data to argue that point, except I think the user probably doesn't have that choice and can at best make a very educated guess.
However I do disagree with your previous suggestion:
Honestly, either
!room:domain.tld domain.tld
) in some command instead of detecting and trying it automatically.The best I can come up with is to "try using the server (latter part of matrix ID) or a user who you know is in the room as a via server)".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All room IDs include this information at the moment. And is why I created https://github.com/vector-im/element-web/issues/24475 to suggest to people how to do the right thing (derive the via server from the room ID)
Agreed that this should just be automatic, but I think we're at ideological odds with the decision makers since they would want to treat room IDs as opaque strings that shouldn't be parsed. Treating it as an opaque string is generally a good heuristic since there is some future-looking here where room IDs potentially won't include this information (wish I had some links for future desire).
The half-measure of suggesting the right thing at least gets them to the right place and teaches for next time. And I think has the potential to actually be merged.