Room.isThisRoom Clarification

Hi,

I was looking at Room.isThisRoom:

/**
           * Determines if the <code>sender</code> parameter is the same
           * as the room's JID.
           *
           * @param the room JID to test
           * @return true if the passed JID matches the getRoomJID
           */
          public function isThisRoom( sender:UnescapedJID ):Boolean
          {
               // Checks to see that sender is this room
               return roomJID && sender.bareJID.toLowerCase() == roomJID.bareJID.toLowerCase();
          }

The comments indicate that the function returns true if the passed jid is equivalent to the room’s jid, but the function returns true as long as the parameter is FROM the room, since it only compares the bare JIDs. Which one is the correct behavior?

Thanks,

Karthik