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


  setWorkspaceUnreadCount: (data, unreadCount) ->

    workspaceItem = @workspaceItemChannelMap[data._id]

    return  unless workspaceItem

    workspaceItem.child.setUnreadCount unreadCount

    return  unless unreadCount is 0

    { socialapi } = kd.singletons

    socialapi.channel.updateLastSeenTime channelId : data._id, kd.noop


  handleFollowedFeedUpdate: (update) ->

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


  handleWorkspaceUnreadCounts: (chatData) ->

    cb = =>
      chatData.forEach (data) =>
        @setWorkspaceUnreadCount data, data.unreadCount

    if @isMachinesListed then cb()
    else @once 'MachinesListed', => cb()


  # addNewWorkspace: (machineData) ->
