I’m curious…How to restrict sub types only to none and both to emulate subscripton model where only mutual subscription is possible or none at all.
Consider all users are on one local domain. we can catch moment when contact accepts user’s request and automatically set both roster items into sub=both.
This model similar to models social networks are using.
I barely understand how to do it. Two possible ways:
-
Use custom PresenceSubscribeHandler class
-
Implement RosterEventListener.
Any thoughts?