powered by Jive Software

Room isActive bug

There is a bug in Xiff which does not reset the isActive state of a room on leaving the room. This causes problems when trying to connect to a different room.

This can be fixed by adding the line


at the end of the if block in function leave() in Room.as.



This is not a bug.

The leave method sends an unavailable presence.

When that presence is received by the room, it calls setActive( false) if the presence is from the user.

Active just gets set once the presence is received and not right when leave is called.

You should listen for the ROOM_LEAVE or ROOM_DESTROYED event (depending on if you are a room owner or not) and then do whatever you needed to do.