         @current_container(@containers()[0])
 
     @invites = @komp =>
-      if not @previous_successful_build() and @outcome() == "success" and VM.project()
-        new CI.inner.BuildInvite VM.project().users()
+      if not @invite_sent() and not @previous_successful_build() and @outcome() == "success" and VM.project()
+        new CI.inner.BuildInvite VM.project().users(), () =>
+          @invite_sent(true)
 
   feature_enabled: (feature_name) =>
     @feature_flags()[feature_name]

    for user in @users
      @inviting[user.login] false

  constructor: (users, json={}) ->
    super json
    @users = users
    @inviting = {}
    # Prepopulate the list of team members to invite with the ones
    # whose email addresses we already know.

    rest_commits_visible: false
    node: []
    feature_flags: {}
    invite_sent: false

  clean: () =>
    # pusher fills the console with errors if you unsubscribe
