'Gets the invite for the given user and room
Args:
user_id (str)
room_id (str)
Returns:
Deferred: Resolves to either a RoomsForUser or None if no invite was
found.'

@defer.inlineCallbacks
def get_invite_for_user_in_room(self, user_id, room_id):

    invites = (yield self.get_invited_rooms_for_user(user_id))
    for invite in invites:
        if (invite.room_id == room_id):
            defer.returnValue(invite)
    defer.returnValue(None)
