-
Link Mauve
Do we have a recommendation for which nickname to use atm?
-
Zash
When?
-
Zash
There's https://docs.modernxmpp.org/client/groupchat/#user-nickname
-
Zash
and https://docs.modernxmpp.org/client/design/#names
-
Link Mauve
Thanks.
-
Link Mauve
When entering a MUC mostly.
-
Link Mauve
And https://github.com/modernxmpp/modernxmpp/pull/36
-
lovetox
Link Mauve, when joining i take the nick set via UserNickname in PEP
-
lovetox
if the user wants to change it, i save it to the bookmark and from that point on use only that
-
lovetox
so bookmark > pep
-
lovetox
bookmark > pep > localpart
-
Link Mauve
That’s pretty much what’s written in that document. :)
-
Link Mauve
With a fallback to vCard if PEP isn’t defined.
-
lovetox
hm i dont like that
-
lovetox
actually i dont show or let the user set the nickname in vcard
-
lovetox
there is no reason we need 2 places to set a nickname in xmpp
-
lovetox
same with avatar
-
Link Mauve
I guess it’s a fallback for the case where older clients have changed it?
-
Link Mauve
I think Prosody’s mod_vcard_legacy will store a nickname set that way into PEP actually.
-
Zash
Hmmmm
-
Link Mauve
Or not?
-
Link Mauve
local ok, _, nick_item = pep_service:get_last_item("http://jabber.org/protocol/nick", stanza.attr.from);
-
Link Mauve
It does.
-
Zash
Only if the requester isn't allowed to read the vcard4 data iirc
-
Link Mauve
Or is that only when a client requests the vCard?
-
Link Mauve
Oh, my bad…
-
Link Mauve
Meh.
-
Zash
mod_profile did tho
-
Zash
Lots of crazy experimental things in that, but most of them were deemed unnecessary
-
Link Mauve
“A user SHOULD discover his or her reserved nickname before attempting to enter the room.” ugh, TIL.
-
Zash
Heh
-
Link Mauve
Yet another decades old sentence that appeared between yesterday and today. :x
-
Zash
Found that when we added nickname reservation support in Prosody, so it supports that discovery thing
-
Zash
The MUC can also just override your nick and tell you that you joined with a different nick.
-
Link Mauve
Is there any client which obeys that SHOULD?
-
Zash
🤷️
-
Link Mauve
Is there any harm in joining with a different nick without having done that query?
-
Link Mauve
Would the MUC always override your nick in that case?
-
Link Mauve
Or is it UB?
-
Link Mauve
Anyway, sleep.
-
Zash
If you don't use it, then you risk having the nickname you do use end up being used by someone else when you look away.
-
Zash
OTOH if nickname lockdown is in place you'll either be refused entry or force-renamed by the MUC on join
-
Zash
Would have been so much better if MUC didn't overload resources for nicknames :/
-
lovetox
yeah that was a bad design decision
-
Zash
One day we'll switch to MIX!
-
Zash
and then something else, probably
-
jonas’
or just go the jitsi way and attach a XEP-NICKNAME element to each <message/> and ignore the resource
-
Zash
MUC was iirc the 3rd groupchat protocol. Groupchat 1.0 wasn't even the first IIRC.
-
Zash
jonas’, yup, that'd be fine. isn't that what mix does?
-
Zash
or do you get nicknames from one of the pubsub nodes?
-
jonas’
I think so