fetchRoomsForContainerIfNeeded
abstract suspend fun fetchRoomsForContainerIfNeeded(container: Container): RainbowResult<List<IRainbowRoom>>
Fetches all rooms from the specified container, retrieving from the server only if not already fetched.
This method checks if the rooms associated with the provided container
have already been fetched. If the rooms are available and up-to-date, it will return the existing list; otherwise, it will make a request to the server to retrieve the rooms.
Return
A RainbowResult containing a list of IRainbowRoom objects retrieved from the container. If the fetch operation is successful, the list of rooms will be available. If the operation fails, the result will indicate failure, providing error details.
Parameters
container
The container from which to fetch the rooms.