 FeedList             = require './feedlist'
 Scroller             = require 'app/components/scroller'
 immutable            = require 'immutable'
+checkFlag            = require 'app/util/checkFlag'
 FeedInputWidget      = require './feedinputwidget'
 FeedPaneTabContainer = require './feedpanetabcontainer'
 FeedThreadHeader     = require './feedthreadheader'

      isOpened={@state.isOpened} />


  renderBody: ->

    return null  unless @props.thread

    channelId = @props.thread.get 'channelId'

    <Scroller
      onScroll={@bound 'onScroll'}

      <FeedThreadHeader
        className="FeedThreadPane-header"
        channel={@props.thread.get 'channel'} />
      { @renderFeedInputWidgetAndTabContainer channelId, @props.thread, isAnnouncementChannel }

      <FeedList
        channelId={channelId}
        isMessagesLoading={@isThresholdReached}
