     , false, (ev, conv_id, timestamp, max) -> conv_id
 
     ipc.on 'togglefullscreen', ->
-      mainWindow.setFullScreen not mainWindow.isFullScreen()
+        mainWindow.setFullScreen not mainWindow.isFullScreen()
 
     # bye bye
     ipc.on 'logout', logout

    , false, (ev, conv_id) -> conv_id

    ipc.on 'appfocus', ->
      app.focus()
      if mainWindow.isVisible()
        mainWindow.focus()
      else
        mainWindow.show()

    # no retries, dedupe on conv_id
    ipc.on 'settyping', seqreq (ev, conv_id, v) ->

    # keeps trying to connec the hangupsjs and communicates those
    # attempts to the client.
    reconnect = ->
        console.log 'reconnecting', reconnectCount
        proxycheck().then ->
            client.connect(creds)
            .then ->
                console.log 'connected', reconnectCount
                # on first connect, send init, after that only resync
                if reconnectCount == 0
                    sendInit()
                else
                    syncrecent()
                reconnectCount++
            .catch (e) -> console.log 'error connecting', e

    # counter for reconnects
    reconnectCount = 0
