I need to add user to another user’'s friends list.
This is what I am doing:
user1 login to XMPP server.
user2 login to XMPP server.
String userId = "firstname.lastname@example.org";
String userName = “user1”;
Roster r1 = XMPPConnection().getRoster();
r1.createEntry(userId, userName, groups);
The problem is that I see user1 in the roster.getEntries() of user1 and in the roster.getEntries() of user2.
How can I make it be only in the roster.getEntries() of user2? or, if I can not, how can I identify who created this entry?