 
 PublicChannelNotificationSettingsRoute = require './publicchannelnotificationsettings'
 SingleMessageRoute = require './singlemessage'
+PublicChannelPopularMessages = require './publicchannelpopularmessages'
 
 module.exports = class SingleChannelRoute
 

    @path = ':channelName'
    @childRoutes = [
      new PublicChannelNotificationSettingsRoute
      new SingleMessageRoute
    ]


  onEnter: (nextState, replaceState, done) ->

    messageActions.changeSelectedMessage null
    channelActions.setShowPopularMessagesFlag null

    { channelName } = nextState.params
    selectedThread = kd.singletons.reactor.evaluate selectedChannelThread
