Search in sources :

Example 1 with DestroyRoom

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);
}
Also used : JoinRoom(org.xmpp.muc.JoinRoom) DestroyRoom(org.xmpp.muc.DestroyRoom)

Aggregations

DestroyRoom (org.xmpp.muc.DestroyRoom)1 JoinRoom (org.xmpp.muc.JoinRoom)1