Isn't this always true because sent_on is always in the past? So the invite would always be set to expired here?