Chatroom ownership dilema

I have a small question on how Openfire handles chat room ownership for instant and persistent chat rooms.

Let’s say we join a room and except the default configuration (room is unlocked, instant).

Another user joins.

The owner leaves the room for whatever reason.

Who becomes owner of the room? If the original owner comes back, does he get his ownership back?

What if there are 3 or more users and the owner leaves the instant room?

As far as I can tell, if only 1 user stays in an instant room, that user becomes the owner, unless the room is persistent. In that case the original creator is still the owner.

Is this correct or am I missing something?