       index = 0  if isPrivateMessage
 
       if isChannelCollaborative channel
-        @fetchMachines (data) =>
+        @fetchEnvironmentData (data) =>
           @sharedMachinesList.updateList data.shared.concat data.collaboration
           @setWorkspaceUnreadCount channel, unreadCount
       else

      machineList.selectMachineAndWorkspace machine.uid, workspace.slug


  # TODO: Rename this method to fetchEnvironment - acet!
  fetchMachines: (callback) ->

    environmentDataProvider.fetch (data) => callback data



    if isChannelCollaborative channel
      if channelMessage.payload['system-message'] in ['start', 'stop']
        @fetchEnvironmentData =>
          @setWorkspaceUnreadCount channel, unreadCount

    switch update.channel.typeConstant
