Clicking on username inserts ID instead of matrix.to username #828
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.
Good evening, quaternion devs
Currently, when you tab-complete a username or click on someone's name to ping them, quaternion inserts their username in the
[username](matrix.to/address/to/user)
format. As you all know, this is the standard for Matrix clients. With this change, if you click on someone's name in chat, it instead inserts the user id (@username:homeserver.com format). I think this would be more convenient for some things such as typing console commands, because quaternion commands such as /ban or /ignore do not currently accept the matrix.to format.Note that tab-completion still inserts the username in matrix.to format in this PR.
I'm interested in your input on if this would be good behavior. I think being able to tab-complete or complete via click a username for console commands would be very welcome for roomops. Perhaps this could be reworked so that it only happens when the user shift-clicks the username? Maybe rework the commands so that they parse the username in matrix.to format?
Thank you,