public boolean iAmSubscribedTo ( Jid jid ) { if ( jid == null ) { return false ; } BareJid bareJid = jid . asBareJid ( ) ; RosterEntry entry = getEntry ( bareJid ) ; if ( entry == null ) { return false ; } return entry . canSeeHisPresence ( ) ; }
Check if the XMPP entity this roster belongs to is subscribed to the presence of the given JID .