 
     @ownMachinesList.addMachineBoxes data.own
     @sharedMachinesList.addMachineBoxes sharedData
+
+    @isMachinesListed = yes
+    @emit 'MachinesListed'
 
 
   createMachineList: (type, options, data) ->

    environmentDataProvider.fetch => @sections.messages.reload()


  machinesListed = no
  whenMachinesRendered: ->

    new Promise (resolve) =>
      return resolve()  if machinesListed
      @once 'MachinesListed', ->
        machinesListed = yes
        resolve()


  handleWorkspaceUnreadCounts: (chatData) ->

    @whenMachinesRendered().then =>
      chatData
        .filter  (data) => @workspaceItemChannelMap[data._id]
        .forEach (data) => @setWorkspaceUnreadCount data, data.unreadCount


  # addNewWorkspace: (machineData) ->

    @itemsByName  = {}
    @selectedItem = null

    # @workspaceItemChannelMap = {}

    # @appsList = new DockController

