How to accept a contact add request

Hi,

I have just started with smack-3.1.0. I am developing a client which autometically need to accept a contact add request and need to add the the new user to contact list. How to achive this.

Thanks in advance.

Rajeev

Hello,

By default smack should accept all subscription invitations, see Roster#setDefaultSubscriptionMode for details.

Hope that helps,
Ryan

Hi Ryan,

Thanks a lot for the help. Could you please also tell me how to manually accept the contact request. If a reauest comes to the client, it need to check the messenger id and for some select user It need to accept for others it need to reject.

Rajeev