 IDELayoutManager              = require './workspace/idelayoutmanager'
 IDEView                       = require './views/tabview/ideview'
 BaseModalView                 = require 'app/providers/views/basemodalview'
-actiontypes                   = require 'app/flux/environment/actiontypes'
+actionTypes                   = require 'app/flux/environment/actiontypes'
 
 {warn} = kd
 

  # social related

  setSocialChannel: (channel) ->

    @socialChannel = channel
    @bindSocialChannelEvents()


  fetchSocialChannel: (callback) ->

    return  unless @stateMachine.state in ['Active', 'Ending']

    unless isKoding() # Remove the machine from sidebar.
      kd.singletons.reactor.dispatch actionTypes.COLLABORATION_INVITATION_REJECTED, @mountedMachine._id

    # TODO: fix implicit emit.
    @rtm.once 'RealtimeManagerWillDispose', =>
