jdev - 2023-05-09


  1. lovetox

    when i subscribe to a pubsub node

  2. lovetox

    not with the +notify stuff, rather in the classical sense

  3. lovetox

    does the pubsub server then send me each update to the node as event message, even if im not online?

  4. lovetox

    go these messages into MAM?

  5. MattJ

    lovetox, yes it does, and... "it depends" :)

  6. Peter Waher

    When you configure a pubsub node you determine if it will send event notifications or not, and if they should include reference to item, or include the payload in the event message. Event message “should”™ be sent even if recipient is offline, if offline messaging is supported.

  7. lovetox

    ok but its type = normal, will it be stored in MAM?

  8. MattJ

    lovetox, notifications from Prosody (and I think ejabberd?) are type=headline

  9. MattJ

    There is a per-node config option for that in XEP-0060, but at least Prosody doesn't implement it for PEP (maybe we do for standalone pubsub, not sure)

  10. MattJ

    Looks like we do support it for standalone pubsub, but not PEP. That's something we could probably improve.

  11. Zash

    I thought pep and pubsub was the same thing backed by the same code?

  12. Peter Waher

    There’s also a not-so-much-documented option for pubsubnodes called pubsub#presence_based_delivery, which allows you to configure a node (it seems) to only send notifications if IM is online.

  13. MattJ

    The code that generates PEP notifications does not honour the notification type config option

  14. Zash

    Oh

  15. Peter Waher

    There’s also a not-so-much-documented option for pubsubnodes called pubsub#presence_based_delivery, which allows you to configure a node (it seems, or as I interpret it) to only send notifications if IM is online.

  16. Zash

    Really should have been a subscription option anyway

  17. lovetox

    ok but if its type=headline then its probably not stored by MAM

  18. MattJ

    lovetox, right

  19. lovetox

    how would a client use this subscription then? subscribe while online, and on restart and coming online, poll every node you are subscribed for updates?

  20. MattJ

    Well, PEP is almost exclusively used with +notify instead to prevent the need for that

  21. MattJ

    Explicit subscriptions weren't even supported in Prosody a version or two ago

  22. lovetox

    pep works only if i have presence subscription with a contact or?

  23. MattJ

    Yes

  24. lovetox

    yeah im thinking about ways to do this without having pres sub

  25. MattJ

    Is this related to OMEMO at all?

  26. lovetox

    yes that was the usecase

  27. lovetox

    how do i get updates from the devicelist

  28. lovetox

    which is openly published

  29. lovetox

    i would need to subscribe, and then poll on coming online

  30. lovetox

    if i understood it correctly

  31. Zash

    pubsub since, except that needs presence subscription too?

  32. MattJ

    There was a discussion about this recently, somewhere. There was one client (maybe Kaidan?) which does explicit subscriptions this way, I think

  33. lovetox

    but its weird, then i need to manage myself to what contacts im subscribed, and ihave no real trigger to unsubscribe

  34. lovetox

    as contacts are not in my roster

  35. lovetox

    i could only go with some defined time without message or something

  36. Zash

    or don't subscribe at all, poll for devices, keystuffs at intervals while communicating, or if you see a new device on incoming messages?

  37. Zash

    if that even works

  38. Zash

    how often do people who aren't developers add new devices anyway?

  39. Zash

    What if we had temporary (presence) subscriptions with PEP support? Like, exchange mutual directed presence. Server would unsubscribe you automagically when you go unavailable.

  40. lovetox

    yeah its probably easier for the omemo case to simply query when a conversations starts

  41. lovetox

    and yes your way also works

  42. lovetox

    if i see a new device in a message i dont know, i can trigger a query

  43. MattJ

    I think that's what Conversations does

  44. singpolyma

    > Really should have been a subscription option anyway Yes

  45. wellsfargo@exploit.im

    Can i contact crd2life company