quotient-im / Quaternion

A Qt-based IM client for Matrix
https://matrix.org/ecosystem/clients/quaternion/
GNU General Public License v3.0
642 stars 107 forks source link

Clicking on username inserts ID instead of matrix.to username #828

Open FiskFan1999 opened 2 years ago

FiskFan1999 commented 2 years ago

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,