fetchFavorites
Fetches all favorites for the user.
Retrieves the complete list of favorite contacts and rooms, and updates the favorites property with the fetched data. The favorites property will then contain all the favorite entries, which can be accessed or manipulated as needed.
If a listener is provided, it will be notified with the list of IRainbowFavorite objects once the operation is complete. However, if you have already subscribed to changes in the favorites property, the listener can be ignored as the property will be updated automatically.
Parameters
listener
An optional RainbowListener that will be notified with the result of the fetch operation. The listener receives a List<IRainbowFavorite> objects as its result.