src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java
/**
     * Passes the message to the contained <code>ChatConversationPanel</code>
     * for processing and appends it at the end of the conversationPanel
     * document.
     *
     * @param chatMessage the message to append
     */
Passes the message to the contained ChatConversationPanel
for processing and appends it at the end of the conversationPanel
document.

@param chatMessage the message to append
Passes the message to the contained ChatConversationPanel for processing and appends it at the end of the conversationPanel document . @param chatMessage the message to append
private void appendChatMessage(final ChatMessage chatMessage)
    {
        String keyword = null;
        if (chatSession instanceof ConferenceChatSession
            && Chat.INCOMING_MESSAGE.equals(chatMessage.getMessageType()))
        {
            keyword =
                ((ChatRoomWrapper) chatSession.getDescriptor()).getChatRoom()
                    .getUserNickname();
        }
        String processedMessage =
            this.conversationPanel.processMessage(chatMessage, keyword,
                chatSession.getCurrentChatTransport().getProtocolProvider(),
                chatSession.getCurrentChatTransport().getName());
        if (chatSession instanceof ConferenceChatSession)
        {
            String meCommandMsg
                = this.conversationPanel.processMeCommand(chatMessage);
            if (meCommandMsg.length() > 0)
                processedMessage = meCommandMsg;
        }
        this.conversationPanel.appendMessageToEnd(
            processedMessage, ChatHtmlUtils.HTML_CONTENT_TYPE);
    }
private void appendChatMessage ( final ChatMessage chatMessage ) { String keyword = null ; if ( chatSession instanceof ConferenceChatSession && Chat . INCOMING_MESSAGE . equals ( chatMessage . getMessageType ( ) ) ) { keyword = ( ( ChatRoomWrapper ) chatSession . getDescriptor ( ) ) . getChatRoom ( ) . getUserNickname ( ) ; } String processedMessage = this . conversationPanel . processMessage ( chatMessage , keyword , chatSession . getCurrentChatTransport ( ) . getProtocolProvider ( ) , chatSession . getCurrentChatTransport ( ) . getName ( ) ) ; if ( chatSession instanceof ConferenceChatSession ) { String meCommandMsg = this . conversationPanel . processMeCommand ( chatMessage ) ; if ( meCommandMsg . length ( ) > 0 ) processedMessage = meCommandMsg ; } this . conversationPanel . appendMessageToEnd ( processedMessage , ChatHtmlUtils . HTML_CONTENT_TYPE ) ; }
Passes the message to the contained <code>ChatConversationPanel</code>
 for processing and appends it at the end of the conversationPanel
 document.
Passes the message to the contained <code > ChatConversationPanel< / code > for processing and appends it at the end of the conversationPanel document .
// FIXME I'm pretty sure we are losing the previously prepared // processedMessage content.