src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java
/**
     * Returns the first chat transport for the current chat session that
     * supports group chat.
     *
     * @return the first chat transport for the current chat session that
     * supports group chat.
     */
Returns the first chat transport for the current chat session that
supports group chat.

@return the first chat transport for the current chat session that
supports group chat.
Returns the first chat transport for the current chat session that supports group chat . @return the first chat transport for the current chat session that supports group chat .
public ChatTransport findInviteChatTransport()
    {
        ChatTransport currentChatTransport
            = chatSession.getCurrentChatTransport();
        ProtocolProviderService protocolProvider
            = currentChatTransport.getProtocolProvider();
        if (protocolProvider.getOperationSet(
            OperationSetMultiUserChat.class) != null
            || protocolProvider.getOperationSet(
                OperationSetAdHocMultiUserChat.class) != null)
        {
            return chatSession.getCurrentChatTransport();
        }
        else
        {
            Iterator<ChatTransport> chatTransportsIter
                = chatSession.getChatTransports();
            while (chatTransportsIter.hasNext())
            {
                ChatTransport chatTransport = chatTransportsIter.next();
                Object groupChatOpSet
                    = chatTransport.getProtocolProvider()
                        .getOperationSet(OperationSetMultiUserChat.class);
                if (groupChatOpSet != null)
                    return chatTransport;
            }
        }
        return null;
    }
public ChatTransport findInviteChatTransport ( ) { ChatTransport currentChatTransport = chatSession . getCurrentChatTransport ( ) ; ProtocolProviderService protocolProvider = currentChatTransport . getProtocolProvider ( ) ; if ( protocolProvider . getOperationSet ( OperationSetMultiUserChat . class ) != null || protocolProvider . getOperationSet ( OperationSetAdHocMultiUserChat . class ) != null ) { return chatSession . getCurrentChatTransport ( ) ; } else { Iterator < ChatTransport > chatTransportsIter = chatSession . getChatTransports ( ) ; while ( chatTransportsIter . hasNext ( ) ) { ChatTransport chatTransport = chatTransportsIter . next ( ) ; Object groupChatOpSet = chatTransport . getProtocolProvider ( ) . getOperationSet ( OperationSetMultiUserChat . class ) ; if ( groupChatOpSet != null ) return chatTransport ; } } return null ; }
Returns the first chat transport for the current chat session that
 supports group chat.
Returns the first chat transport for the current chat session that supports group chat .
// We choose between OpSets for multi user chat...