Commit cbe636b7 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Send an unavailable presence to the user that left the room. JM-267


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1292 b35dd754-fafc-0310-a699-88a17e54d16e
parent bd93a3f8
......@@ -605,10 +605,12 @@ public class MUCRoomImpl implements MUCRoom {
}
try {
// Inform the rest of the room occupants that the user has left the room
Presence presence = leaveRole.getPresence().createCopy();
presence.setType(Presence.Type.unavailable);
presence.setStatus(null);
// Inform the leaving user that he/she has left the room
leaveRole.send(presence);
// Inform the rest of the room occupants that the user has left the room
broadcastPresence(presence);
}
catch (Exception e) {
......
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