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


PublicChannelNotificationSettingsRoute = require './publicchannelnotificationsettings'
SingleMessageRoute = require './singlemessage'

module.exports = class SingleChannelRoute


  onEnter: (nextState, replaceState, done) ->

    messageActions.changeSelectedMessage null
    channelActions.setShowPopularMessagesFlag null

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