Commit ae0ffbfd authored by wuchang's avatar wuchang

put addListener to LocalMUCRoomManager

parent 53ec74d9
...@@ -382,7 +382,6 @@ public class LocalMUCRoom implements MUCRoom, GroupEventListener { ...@@ -382,7 +382,6 @@ public class LocalMUCRoom implements MUCRoom, GroupEventListener {
rolesToBroadcastPresence.add("moderator"); rolesToBroadcastPresence.add("moderator");
rolesToBroadcastPresence.add("participant"); rolesToBroadcastPresence.add("participant");
rolesToBroadcastPresence.add("visitor"); rolesToBroadcastPresence.add("visitor");
GroupEventDispatcher.addListener(this);
} }
@Override @Override
......
...@@ -22,6 +22,7 @@ public class LocalMUCRoomManager { ...@@ -22,6 +22,7 @@ public class LocalMUCRoomManager {
} }
public void addRoom(String roomname,LocalMUCRoom room){ public void addRoom(String roomname,LocalMUCRoom room){
rooms.put(roomname, room); rooms.put(roomname, room);
GroupEventDispatcher.addListener(room);
} }
public Collection<LocalMUCRoom> getRooms(){ public Collection<LocalMUCRoom> getRooms(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment