def notify_invites_changed(user_profile: UserProfile) -> None:
    event = dict(type='invites_changed')
    admin_ids = [user.id for user in user_profile.realm.get_admin_users_and_bots()]
    send_event(user_profile.realm, event, admin_ids)
def notify_invites_changed(user_profile: UserProfile) -> None:
    event = dict(type='invites_changed')
    admin_ids = [user.id for user in user_profile.realm.get_admin_users_and_bots()]
    send_event(user_profile.realm, event, admin_ids)