Modern XMPP project discussion - 2020-11-21


  1. Link Mauve

    Do we have a recommendation for which nickname to use atm?

  2. Zash

    When?

  3. Zash

    There's https://docs.modernxmpp.org/client/groupchat/#user-nickname

  4. Zash

    and https://docs.modernxmpp.org/client/design/#names

  5. Link Mauve

    Thanks.

  6. Link Mauve

    When entering a MUC mostly.

  7. Link Mauve

    And https://github.com/modernxmpp/modernxmpp/pull/36

  8. lovetox

    Link Mauve, when joining i take the nick set via UserNickname in PEP

  9. lovetox

    if the user wants to change it, i save it to the bookmark and from that point on use only that

  10. lovetox

    so bookmark > pep

  11. lovetox

    bookmark > pep > localpart

  12. Link Mauve

    That’s pretty much what’s written in that document. :)

  13. Link Mauve

    With a fallback to vCard if PEP isn’t defined.

  14. lovetox

    hm i dont like that

  15. lovetox

    actually i dont show or let the user set the nickname in vcard

  16. lovetox

    there is no reason we need 2 places to set a nickname in xmpp

  17. lovetox

    same with avatar

  18. Link Mauve

    I guess it’s a fallback for the case where older clients have changed it?

  19. Link Mauve

    I think Prosody’s mod_vcard_legacy will store a nickname set that way into PEP actually.

  20. Zash

    Hmmmm

  21. Link Mauve

    Or not?

  22. Link Mauve

    local ok, _, nick_item = pep_service:get_last_item("http://jabber.org/protocol/nick", stanza.attr.from);

  23. Link Mauve

    It does.

  24. Zash

    Only if the requester isn't allowed to read the vcard4 data iirc

  25. Link Mauve

    Or is that only when a client requests the vCard?

  26. Link Mauve

    Oh, my bad…

  27. Link Mauve

    Meh.

  28. Zash

    mod_profile did tho

  29. Zash

    Lots of crazy experimental things in that, but most of them were deemed unnecessary

  30. Link Mauve

    “A user SHOULD discover his or her reserved nickname before attempting to enter the room.” ugh, TIL.

  31. Zash

    Heh

  32. Link Mauve

    Yet another decades old sentence that appeared between yesterday and today. :x

  33. Zash

    Found that when we added nickname reservation support in Prosody, so it supports that discovery thing

  34. Zash

    The MUC can also just override your nick and tell you that you joined with a different nick.

  35. Link Mauve

    Is there any client which obeys that SHOULD?

  36. Zash

    🤷️

  37. Link Mauve

    Is there any harm in joining with a different nick without having done that query?

  38. Link Mauve

    Would the MUC always override your nick in that case?

  39. Link Mauve

    Or is it UB?

  40. Link Mauve

    Anyway, sleep.

  41. 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.

  42. Zash

    OTOH if nickname lockdown is in place you'll either be refused entry or force-renamed by the MUC on join

  43. Zash

    Would have been so much better if MUC didn't overload resources for nicknames :/

  44. lovetox

    yeah that was a bad design decision

  45. Zash

    One day we'll switch to MIX!

  46. Zash

    and then something else, probably

  47. jonas’

    or just go the jitsi way and attach a XEP-NICKNAME element to each <message/> and ignore the resource

  48. Zash

    MUC was iirc the 3rd groupchat protocol. Groupchat 1.0 wasn't even the first IIRC.

  49. Zash

    jonas’, yup, that'd be fine. isn't that what mix does?

  50. Zash

    or do you get nicknames from one of the pubsub nodes?

  51. jonas’

    I think so