ejabberd - Comments for "Using add_rosteritem and subscription consistency" https://www.ejabberd.im/node/4764 en Thanks. I still have one https://www.ejabberd.im/node/4764#comment-57476 <p>Thanks. </p> <p>I still have one problem though. When subscribing 2 users with each other using add_rosteritem command, I need to call this command twice - once for every user. The issue is that one user receives presence notification from the other user before he receives iq set stanza to add this other user to his roster... Is there any workaround for it?</p> Mon, 13 Jun 2011 19:56:20 +0000 szimek comment 57476 at https://www.ejabberd.im szimek wrote: I was hoping to https://www.ejabberd.im/node/4764#comment-57461 <div class="quote-msg"> <div class="quote-author"><em>szimek</em> wrote:</div> <p>I was hoping to use add_rosteritem together with mod_rest to register users, but it behaves rather strange.</p> <p>I can for example add user B to user's A roster with subscription "none" </p></div> <p>That command is administrative, doesn't respect XMPP rules, and that allows the admin to produce an inconsistent state of subscriptions, as you noticed.</p> <p>You must provide the parameters exactly as you want them to be stored: "both" in both calls.</p> Sat, 11 Jun 2011 15:13:17 +0000 mfoss comment 57461 at https://www.ejabberd.im