use of org.xmpp.muc.DestroyRoom in project Openfire by igniterealtime.
the class Workgroup method destroyGroupChatRoom.
private void destroyGroupChatRoom() {
String roomJID = getGroupChatRoomName() + "/workgroup";
// We need to be an occupant of the room to destroy it
JoinRoom joinRoom = new JoinRoom(getFullJID().toString(), roomJID);
send(joinRoom);
// Destroy the group chat room of the workgroup
DestroyRoom destroy = new DestroyRoom(null, null);
destroy.setFrom(getFullJID());
destroy.setTo(getGroupChatRoomName());
send(destroy);
}
Aggregations