BUG - Roster Groups Never Populated

A bug was introduced with the following checkin wherein roster items are never added to their RosterGroup:

r11235 | juga | 2009-09-04 01:29:25 PDT
Changed paths:
M /xiff/trunk/src/org/igniterealtime/xiff/data/im/RosterGroup.as

Removal of the Flex version of ArrayCollection.

r11181 | juga | 2009-08-19 14:04:21 PDT
Changed paths:
M /xiff/trunk/src/org/igniterealtime/xiff/data/im/RosterGroup.as

Removed the use of ArrayCollection in RosterGroup.

The current code is:

 public function addItem(item:RosterItemVO):void
    {
        if (**_items.contains(item)**)
        {
            _items.addItem(item);
        }
    }

And should be:

 public function addItem(item:RosterItemVO):void

    {

        if (**false == _items.contains(item)**)

        {

            _items.addItem(item);

        }

    }

RosterGroup-addItem Patch.txt.zip (418 Bytes)

Hups…

Fixed.