ejabberd - Comments for "Presence subscription not working with custom rosterusers view" https://www.ejabberd.im/forum/28782/presence-subscription-not-working-custom-rosterusers-view en We ended up writing a module https://www.ejabberd.im/forum/28782/presence-subscription-not-working-custom-rosterusers-view#comment-67500 <p>We ended up writing a module on the XMPP that calls on add_rosteritem when it receives a custom stanza from our external server that holds the roster view and handles the friends relationships.</p> <p>thanks for your answer!</p> Fri, 02 Jun 2017 13:58:59 +0000 Udrian comment 67500 at https://www.ejabberd.im > However when a new row is https://www.ejabberd.im/forum/28782/presence-subscription-not-working-custom-rosterusers-view#comment-67469 <p>&gt; However when a new row is added to the view </p> <p>And does anybody alert ejabberd that it should do anything? I mean, when a client logins, it requests the roster and mod_roster sends it to the client. Or when a client requests subscription to another client, then mod_roster performs that request, etc. I mean, if you change the DB, how can ejabberd know magically that anything changed?</p> <p>The only way I can think is what you attempt: when the database changes, send some stanza to push that change to the corresponding users' clients. See mod_admin_extra command add_rosteritem, specifically the function push_roster_item(LU, LS, R, U, S, Action)</p> Thu, 18 May 2017 18:55:11 +0000 badlop comment 67469 at https://www.ejabberd.im