 
   @defaultProps =
     thread   : immutable.Map()
-    messages : immutable.List()
     padded   : no
 
   constructor: (props) ->

    return  unless body = value

    ActivityFlux.actions.message.createMessage @channel('id'), body


  onLoadMore: ->

    return  unless @props.messages.size
    return  if @props.thread.getIn ['flags', 'isMessagesLoading']

    from = @props.messages.first().get('createdAt')
    kd.utils.defer => ActivityFlux.actions.message.loadMessages @channel('id'), { from, loadedWithScroll: yes }


  onFollowChannel: ->


  renderFooter: ->

    return null  unless @props.thread?.get 'messages'

    { thread } = @props

