src/net/java/sip/communicator/plugin/otr/ScOtrEngineImpl.java
/**
     * Checks whether history is enabled for the metacontact containing
     * the <tt>contact</tt>.
     * @param contact the contact to check.
     * @return whether chat logging is enabled while chatting
     * with <tt>contact</tt>.
     */
Checks whether history is enabled for the metacontact containing
the contact.
@param contact the contact to check.
@return whether chat logging is enabled while chatting
with contact.
Checks whether history is enabled for the metacontact containing the contact . @param contact the contact to check . @return whether chat logging is enabled while chatting with contact .
private boolean isHistoryLoggingEnabled(Contact contact)
    {
        MetaContact metaContact = OtrActivator
            .getContactListService().findMetaContactByContact(contact);
        if(metaContact != null)
            return OtrActivator.getMessageHistoryService()
                .isHistoryLoggingEnabled(metaContact.getMetaUID());
        else
            return true;
    }
private boolean isHistoryLoggingEnabled ( Contact contact ) { MetaContact metaContact = OtrActivator . getContactListService ( ) . findMetaContactByContact ( contact ) ; if ( metaContact != null ) return OtrActivator . getMessageHistoryService ( ) . isHistoryLoggingEnabled ( metaContact . getMetaUID ( ) ) ; else return true ; }
Checks whether history is enabled for the metacontact containing
 the <tt>contact</tt>.
Checks whether history is enabled for the metacontact containing the <tt > contact< / tt > .