jdev - 2022-09-22


  1. nicoco_

    how do I broadcast PEP nicknames and PEP avatars to "newly" connected resources? Are they supposed to request the items themselves, or should I listen to their "got online" presences, and broadcast nicknames and avatar (metadata) everytime they connect? should I keep track of what I've sent to which resource in order to avoid sending the same thing to the same resource everytime they get online?

  2. pep.

    nicoco_, they'll request it having +notify in their disco

  3. pep.

    https://xmpp.org/extensions/xep-0163.html#example-4 and the text around it, as well as the following example

  4. nicoco_

    ok oh, so when they connect, I should disco query on user@server/resource, and IF the they have avatar+notify then I broadcast the avatar metada

  5. nicoco_

    ok oh, so when they connect, I should disco query on user@server/resource, and IF they have avatar+notify int here, then I broadcast the avatar metada

  6. nicoco_

    ok oh, so when they connect, I should disco query on user@server/resource, and IF they have avatar+notify int here, then I broadcast the avatar metadata

  7. pep.

    When they connect you should receive their caps in their presence, and from that you can see if they have +notify (if you've cached caps, or otherwise query disco#info again)

  8. Link Mauve

    nicoco_, do the disco query only if you don’t have their caps in cache already, because otherwise you already know what’s going to be sent back.

  9. nicoco_

    thanks peps and Link Mauve! I *think* slixmpp handles caching disco items from caps, I will try to not re-invent the wheel here.