src/net/java/sip/communicator/impl/protocol/jabber/ScServiceDiscoveryManager.java
/**
     * Remove records telling what entity caps node a contact has.
     *
     * @param contact the contact
     */
Remove records telling what entity caps node a contact has.
@param contact the contact
Remove records telling what entity caps node a contact has . @param contact the contact
public void removeContactCapsNode(Contact contact)
    {
        String nodeVer = null;
        Jid lastRemovedJid = null;
        Iterator<Jid> iter = userCaps.keySet().iterator();
        while(iter.hasNext())
        {
            Jid jid = iter.next();
            if(jid.equals(contact.getAddress()))
            {
                nodeVer = userCaps.get(jid);
                lastRemovedJid = jid;
                iter.remove();
            }
        }
        EntityCapsManager.removeUserCapsNode(contact.getAddress());
        if(nodeVer != null)
        {
            fireUserCapsNodeEvent(false, lastRemovedJid, nodeVer);
        }
    }
public void removeContactCapsNode ( Contact contact ) { String nodeVer = null ; Jid lastRemovedJid = null ; Iterator < Jid > iter = userCaps . keySet ( ) . iterator ( ) ; while ( iter . hasNext ( ) ) { Jid jid = iter . next ( ) ; if ( jid . equals ( contact . getAddress ( ) ) ) { nodeVer = userCaps . get ( jid ) ; lastRemovedJid = jid ; iter . remove ( ) ; } } EntityCapsManager . removeUserCapsNode ( contact . getAddress ( ) ) ; if ( nodeVer != null ) { fireUserCapsNodeEvent ( false , lastRemovedJid , nodeVer ) ; } }
Remove records telling what entity caps node a contact has.
Remove records telling what entity caps node a contact has .
// fire only for the last one, at the end the event out // of the protocol will be one and for the contact