I would like to be able to handle user roster (add/remove buddy) without using xmpp stanzas, but with erlang own erlang function (or ejabberd functions).
Use case: i want to add user2@myhost
to user1@myhost
's roster:
Is it possible to do something like:
User1 = "user1@myhost",
User2 = "user2@myhost",
mymodule:add_user_to_roster(User1, User2)
and if so, how can I implement the function add_user_to_roster(User1, User2)
?