public CompletableFuture<Void> sendInitialPresenceToExistingOccupants(MUCOccupant joinedOccupant) {
        // Send the presence of this new occupant to existing occupants
        Log.trace( "Send presence of new occupant '{}' to existing occupants of room '{}'.", joinedOccupant.getUserAddress(), this.getJID() );
        try {
            final Presence joinPresence = joinedOccupant.getPresence();
            return broadcastPresence(joinPresence, true, joinedOccupant);
        } catch (Exception e) {
            Log.error( "An exception occurred while sending initial presence of new occupant '{}' to the existing occupants of room: '{}'", joinedOccupant.getUserAddress(), this.getJID(), e);
        }
        return CompletableFuture.completedFuture(null);
    }
Sends presence of new occupant to existing occupants.

@param joinedOccupant the occupant data of the new user in the room.
xmppserver/src/main/java/org/jivesoftware/openfire/muc/MUCRoom.java