-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usernames containing mxids are overzealous at disambiguation #5914
Comments
This is by design, so "overzeleous" is up for debate. |
Why would it care about MXID's in square brackets? |
I thought the original aim of matrix-org/matrix-js-sdk#588 was to make sure that people don't set their display name to |
I think it was more to make manual disambiguation clear Say I changed my display name to |
That's what I meant, I'm just bad at words. It makes perfect sense to throw in disambiguation for that, but the RSS Bot is clearly not trying to impersonate me. |
If I didn't know what disambiguation looks like I would surely be tricked. Do we want to demand users to remember wether disambig uses brackets or parens, even when they might never have seen it before? And what about all the nearly identical parentheses? This is by far the easiest and secure solution. The only problem is if the display name is abused to display metadata about the user like above. I don't see this as a problem. |
The display name isn't abused in this case - it's an intentional decision as well. The user is added to the notification bots for moderation purposes as there's no other way to know who decided to add the RSS feed to the room without using Scalar/Modular. I'm not sure how best to handle this as it's clear that the definitions of what is clear and not are different for us. I'd argue that There's also the concern of people using the display name to communicate account migration. For example, someone might set their display name to Realistically, I feel a solution towards https://github.com/matrix-org/matrix-doc/issues/538 is better than forcing disambiguation as much as possible. I've yet to see a case where someone actually exploited the disambiguation algorithm. Now, that's not to say it's not a problem, it's just to illustrate that a proper disambiguation solution would be preferred in my eyes instead of making rooms hard to parse mentally. |
I'd count both cases as "abusing" the display name by using it to display additional non-name information because there is no where else to put it. A simple solution would be to have a |
@lampholder Definitely that too. However, I'm still a bit weary regarding solutions that require people to already know what disambiguation should look like. If I never (or rarely) see it, how would I know that it should look like a pill, rather than the way it now looks (especially since we've already used a particular style that would now suddenly be "dangerous"). I think it's much more worthwhile to fix @turt2live's underlying issue: The need to indicate a related mxid (i.e. not the actual mxid of the user) associated with a user. The problem would be solved by displaying this kind of information separately, which would prevent the "unnecessary" disambiguation, while still making spoofing difficult. edit: Something like where the text could be something like "Added by someone@example.org" for integrations. |
Another way to avoid "safety disambiguation" because of the presence of an mxid in the name would be to display a small warning icon (instead of showing the full mxid), which on hover would explain what is going on, and that the mxid in the name might be there to trick you. This would make spoofing harder, while not adding the full mxid which some people might find "too much". |
The pill-like disambiguation is quite distracting to me. @pafcu is right in that my problem now is that accounts which are not trying to impersonate users are victims of the algorithm, although I'd seriously recommend fixing disambiguation as a concept rather than just for integrations (as that's another can of worms). Having user IDs in any way displayed is not a good solution to me: they are often cluttered or hard to read, particularly in rooms that are bridged. The display name is supposed to be front-facing to people. The disambiguation should also be done in a way where someone doesn't ask questions about how it works (most of these questions end up being sessions on how decentralized systems work - not something the average user is going to understand). I'm honestly not sure about what that would look like, but it is infuriating that many rooms are unreadable under the current semantics. Colors seems like the leading choice amoung the other issues, although it has the risk of colors becoming too close to distinguish. Some kind of identifier under the avatar may also work. |
One possibility would be to automatically give the option to change your display name in a specific room, if there is already someone with that name there. This might reduce triggering disambiguation a bit. (Although not really relevant for integrations or this specific issue). E.g. if your preferred name is John, and there is already a John in the room you enter, you might want to use the name John D. instead. Again, just as an option. If you really, really, want to be called just John, go ahead, but there might be disambiguation involved. This might be good if you are the only John in your company (so you use that as your display name), but you end up in a conversation with a customer who is also called John. edit: Basically encourage people to use slightly different names in different rooms. This is different than how much chat systems work, so it might not even occur to people that this is possible. |
It shouldn't be ignoring bracketed strings, it should force disambiguation if there's anything that looks like an MXID in the displayname. I'm not sure that the screenshot shows the whole issue |
Neither "Half-Shot" or "Half-Shot (XMPP)" contain anything like an mxid. What are you missing from the screenshot? The memberlist of that room contains: (The second user is doing the right thing in the memberlist, it's the third one that has the issue). |
This is especially severe when the mxid is deliberately opaque |
Isn't this technically fixed by #16897? For the mention of the sidebar, there's also matrix-org/matrix-react-sdk#6328 in the works. |
No, this issue is about the algorithm which decides when to kick in disambiguation being too sensitive (trigger happy) |
Disambiguation is now different enough where I'm no longer concerned about this personally. If folks feel strongly otherwise, please open a new issue with fresh information for reconsideration. |
Description
There's only one RSS bot in the room.
Introduced by matrix-org/matrix-js-sdk#588
Version information
The text was updated successfully, but these errors were encountered: