0
votes

I am developing a xmpp client and currently working on "pubsub". I created a node in pubsub and subscribed two users to it. But when a subscriber login(show presence) i get the last published item twice. I am using ejabberd server. Can anyone help?? Thank you.

1
Did you solve this?. My issue is related. I am receiving presence stanza twice.iamkhush
No i could'nt....but check with the latest version of ejabberd.user1606591

1 Answers

0
votes

Same here,

There seems to be two different queues. With notification_type=normal, messages are stored offline. When receiver becomes online, it receives the message twice:

  • from offline spool, without headline attribute
  • from pubsub send loop (as node is still configured with send_last_published_item = on_sub_and_presence)

As stated here when configuring pubsub node with notification_type=normal, it's best to disable send_last_published_item or set it to on_sub only in order to avoid receiving the message twice.