         invitePanel.hide()
 
   sendHipChatMessageTo: (mentionName) ->
-
-
     hc_client = new HipChat(@hc_key)
 
     @sessionId = "#{@app_key}-#{@app_secret}-#{randomstring.generate(11)}"
 
-    params = {
-      room: @room_id,
-      from: 'PusherPair',
-      message: "Hello there #{mentionName}. Somebody really really wants to pair with you. Go onto Atom, and if you've installed the PusherPair plugin, hit 'Join a pairing session', and enter this string: #{@sessionId}",
+    params =
+      room: @room_id
+      from: 'PusherPair'
+      message: "Hello there #{mentionName}. Somebody really really wants to pair with you. Go onto Atom, and if you've installed the PusherPair plugin, hit 'Join a pairing session', and enter this string: #{@sessionId}"
       message_format: 'text'
-    }
 
     hc_client.postMessage params, (data) =>
       alertView = new AlertView "#{mentionName} has been sent an invitation. Hold tight!"
       atom.workspace.addModalPanel(item: alertView, visible: true)
+      @members = 1
       @startPairing()
 
 

      @startView = new StartView(@sessionId)
      @startPanel = atom.workspace.addModalPanel(item: @startView, visible: true)
      @startView.focus()
      @startPairing()

  inviteOverHipChat: ->


      triggerPush = true

    buffer.onDidChange (event) =>
      return unless triggerPush
      deletion = !(event.newText is "\n") and (event.newText.length is 0)
      @pairingChannel.trigger 'client-change', {deletion: deletion, event: event}

  shareCurrentFile: (buffer)->
    currentFile = buffer.getText()
    @pairingChannel.trigger 'client-share-file', currentFile
