         showItemMenu : showItemMenu
 
       count          = @calculateRemainingMessageCount()
-      firstMessageId = thread.getIn ['message', '_id']
+      firstMessageId = @getFirstMessageId()
 
       if lastMessageId and lastMessageId is message.get 'accountId'
         <SimpleChatListItem {...itemProps} />

  renderChildren: ->

    lastMessageId = null
    { messages, showItemMenu, thread } = @props

    messages.map (message, i) =>
      itemProps =


  calculateRemainingMessageCount: ->

    return no  unless @props.thread.message

    repliesCount = @props.thread.getIn ['message', 'repliesCount']
    messageCount = @props.messages.size - 1
    count = repliesCount - messageCount
    count =  if count > 0 then count else 0

    return count


  getFirstMessageId: ->

    if thread.get 'message'
      return thread.getIn ['message', '_id']

    return no


  renderFirstMessageDate: (count) ->
