'Sends a presence invite.'

@defer.inlineCallbacks
def send_presence_invite(self, observer_user, observed_user):

    (yield self.store.add_presence_list_pending(observer_user.localpart, observed_user.to_string()))
    if self.is_mine(observed_user):
        (yield self.invite_presence(observed_user, observer_user))
    else:
        (yield self.federation.send_edu(destination=observed_user.domain, edu_type='m.presence_invite', content={'observed_user': observed_user.to_string(), 'observer_user': observer_user.to_string()}))
