 
   addMessages: ->
 
-    @wrapper.addSubView @sections['messages'] = new ActivitySideView
+    @wrapper.addSubView @sections.messages = new ActivitySideView
       title      : 'Messages'
       cssClass   : 'inbox users'
       itemClass  : SidebarMessageItem

      cssClass : 'kdlistitemview-sidebar-item public-feed-link'
    ,
      name     : 'koding_public_feed'
      id       : "#{KD.getGroup().socialApiChannelId ? 1}"
      channel  : KD.singleton "socialapi"


    @public.addSubView new KDCustomHTMLView
      cssClass : 'count'
      tagName  : 'cite'
      partial  : '1'

    # # load initial public feed
    # KD.utils.defer -> activityController.emit 'SidebarItemClicked', @public


  addHotTopics: ->

    @wrapper.addSubView @sections['hot'] = new ActivitySideView
      title      : 'HOT'
      cssClass   : 'hot topics'
      itemClass  : SidebarTopicItem


  addChat: ->

    @wrapper.addSubView @sections.chat = new ActivitySideView
      title    : 'Chat'
      cssClass : 'chat users'
      itemClass : SidebarChatMemberItem
