AnsweredAssumed Answered

ContactGroup.getContactItemByJID  not contains the offline items?

Question asked by vincent on Dec 21, 2010
Latest reply on Dec 22, 2010 by Konstantin

public ContactItem getContactItemByJID(String bareJID) {
        for (ContactItem item : new ArrayList<ContactItem>(contactItems)) {
            if (item.getJID().equals(bareJID)) {
                return item;
            }
        }
        return null;
    }
public ContactItem getContactItemByJID(String bareJID) {
        for (ContactItem item : new ArrayList<ContactItem>(contactItems)) {
            if (item.getJID().equals(bareJID)) {
                return item;
            }
        }
        return null;
}

 

should we check the offlineContacts,too?

Outcomes