not with the +notify stuff, rather in the classical sense
lovetox
does the pubsub server then send me each update to the node as event message, even if im not online?
lovetox
go these messages into MAM?
Arnehas joined
MattJ
lovetox, yes it does, and... "it depends" :)
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.
lovetox
ok but its type = normal, will it be stored in MAM?
MattJ
lovetox, notifications from Prosody (and I think ejabberd?) are type=headline
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)
MattJ
Looks like we do support it for standalone pubsub, but not PEP. That's something we could probably improve.
Zash
I thought pep and pubsub was the same thing backed by the same code?
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.✎
MattJ
The code that generates PEP notifications does not honour the notification type config option
Zash
Oh
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. ✏
Zash
Really should have been a subscription option anyway
lovetox
ok but if its type=headline then its probably not stored by MAM
MattJ
lovetox, right
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?
MattJ
Well, PEP is almost exclusively used with +notify instead to prevent the need for that
MattJ
Explicit subscriptions weren't even supported in Prosody a version or two ago
lovetox
pep works only if i have presence subscription with a contact or?
MattJ
Yes
lovetox
yeah im thinking about ways to do this without having pres sub
MattJ
Is this related to OMEMO at all?
lovetox
yes that was the usecase
lovetox
how do i get updates from the devicelist
lovetox
which is openly published
lovetox
i would need to subscribe, and then poll on coming online
lovetox
if i understood it correctly
Zash
pubsub since, except that needs presence subscription too?
MattJ
There was a discussion about this recently, somewhere. There was one client (maybe Kaidan?) which does explicit subscriptions this way, I think
lovetox
but its weird, then i need to manage myself to what contacts im subscribed, and ihave no real trigger to unsubscribe
lovetox
as contacts are not in my roster
lovetox
i could only go with some defined time without message or something
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?
Zash
if that even works
Zash
how often do people who aren't developers add new devices anyway?
Arnehas left
PapaTutuWawahas left
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.
Caesarhas left
lovetox
yeah its probably easier for the omemo case to simply query when a conversations starts
lovetox
and yes your way also works
lovetox
if i see a new device in a message i dont know, i can trigger a query
norayrhas left
PapaTutuWawahas joined
MattJ
I think that's what Conversations does
Laurahas left
Wojtekhas joined
Mx2has left
singpolyma
> Really should have been a subscription option anyway
Yes ↺