/** * Creates new instance of <tt>ChatRoomImpl</tt>. * * @param parentChatOperationSet parent multi user chat operation set. * @param roomJid the room JID (e.g. "room@service"). */ public ChatRoomImpl(OperationSetMultiUserChatImpl parentChatOperationSet, EntityBareJid roomJid) { this.opSet = parentChatOperationSet; this.roomJid = roomJid; MultiUserChatManager manager = MultiUserChatManager .getInstanceFor(parentChatOperationSet.getConnection()); muc = manager.getMultiUserChat(this.roomJid); muc.addParticipantStatusListener(memberListener); muc.addParticipantListener(this); }
chat.addParticipantStatusListener( new DefaultParticipantStatusListener()