Hello,
it seems that the openfire server broadcasts the presence message to the user
sending it. Let me make it clear.
1) I have a client (call it c1 with the resource xxx) that sends the initial presence message </presence>
2) after a few seconds the client receives a message like this
<presence to="c1@mysite.com/xxx" from "c1@mysite.com/xxx" />
Why?
As far as I know, the server should broadcast the presence to all the user in
the roster (ref. https://xmpp.org/rfcs/rfc3921.html#presence ).
Of course I checked the roster and I can't see the user c1 in c1's roster list.
Additionally, this behavior happens not sistematically. In other words, sometimes
the client c1 receives this message after the initial presence, sometime it does
not reiceve it.
Why?
Any suggestion is appreciated.
Thank you in advance.