Added code to prevent repeats when inviting friends to an event.