Open deleolajide opened 4 years ago
IIRC, this ordering was agreed upon in the XMPP UX sprint in Brussels in 2019 (and is therefore also how other adhering clients will order things).
Perhaps we can fix the auto-complete lists so that they show whatever gets matched?
So if you match JID, it'll show the JID, if you match the nickname, it'll show that. In both cases it can perhaps show the other two values as well.
and is therefore also how other adhering clients will order things).
Did we get agreement from the server implements too. I am being asked by Prosody to changes this.
Alright. We can leave this as it is and tackle the issue at the auto-complete lists, but my instincts and experience tell me that this will show up again as another issue some time later, somewhere else.
My displayed name should be my full-name from vCards. If not available, then use a nickname before resorting to my JID.
Does not look like this will be straightforward to fix with 7.0 as the code now limits the autocompletion list to only nicknames and drops the references to the occupant that provided it.
I think getAllKnownNicknames should return a Set of objects and not a Set of strings, but that could have a breaking effect elsewhere.
I might have to do a temporary 6.x fix and leave this issue outstanding for now.
Actually... I might be misremembering. The nickname you set for the user in the roster should have highest preference, but that's a different nickname I now realise.
So I think your original proposal is good. Will you please make a PR?
So I think your original proposal is good. Will you please make a PR?
Thanks, I will do that. It will become compatible with Prosody in that respect. However, I just released after following up deep into the code after your first comments that that it wont fix the auto-complete problem that triggered the issue.
Auto-completion lists always uses the room nickname
In what way does it become compatible with Prosody?
In what way does it become compatible with Prosody?
The full discussion can found here.
Describe the bug Converse is giving nickname higher priority than fullname when it evaluates the function getDisplayName in vCards. This causes autocompletion lists to always show vCard usernames instead of full-names (first and fast names).
https://github.com/conversejs/converse.js/blob/ad4999384d221b41bad6a8ec9e4fe15cadf9ef15/src/headless/converse-vcard.js#L98
See this bug report for more detail
Solution is to swap postions