this.connectNamespace = connectNamespace;
this.connectedID = connectedID;
this.ecfConnection = connection;
if (connection != null) {
// Setup invitation requestListener
MultiUserChat.addInvitationListener(ecfConnection.getXMPPConnection(), new InvitationListener() {
public void invitationReceived(Connection arg0, String arg1, String arg2, String arg3, String arg4, Message arg5) {
fireInvitationReceived(createRoomIDFromName(arg1), createUserIDFromName(arg2), createUserIDFromName(arg5.getTo()), arg5.getSubject(), arg3);
}
});
} else {