                     # message count
                     # So we assume that if query.pageAfter is null, there's
                     # no more messages to display
-                    nbMessages = parseInt(@props.counterMessage, 10)
-                    if @props.messages.count() < nbMessages and
+                    if @moreToSee() and
                        @props.query.pageAfter?
                         p className: 'text-center list-footer',
                             if @props.fetching

                                    t 'list next page'
                    else
                        p ref: 'listEnd', t 'list end'


    refresh: (event) ->

            LayoutActionCreator.showMessageList parameters: @props.query

    _handleRealtimeGrowth: ->
        nbMessages = parseInt @props.messagesCount, 10
        if (not @moreToSee()) and @refs.listEnd? and
        not DomUtils.isVisible(@refs.listEnd.getDOMNode())
            lastdate = @props.messages.last().get('date')
            SocketUtils.changeRealtimeScope @props.mailboxID, lastdate
