'Get all the rooms the user is invited to
Args:
user_id (str): The user ID.
Returns:
A deferred list of RoomsForUser.'

@cached()
def get_invited_rooms_for_user(self, user_id):

    return self.get_rooms_for_user_where_membership_is(user_id, [Membership.INVITE])
