         limit: @padding
       remote:
         discussion_id: @discussion.id
-        per: @padding
         order_by: 'sequence_id'
         order_desc: true
+        per: @padding
 
   addContextRule: ->
     @rules.push

import Records from '@/shared/services/records'
import { isNumber, uniq, compact, orderBy, camelCase, forEach, isObject, sortedUniq, sortBy, without, map } from 'lodash'
import Vue from 'vue'
import RangeSet         from '@/shared/services/range_set'
import EventBus         from '@/shared/services/event_bus'

          find:
            id: @discussion.createdEvent().id

    # I don't think we need this..
    # @rules.push
    #   name: {path: "strand_nav.new_to_you"}
    #   local:
    #     find:
    #       discussionId: @discussion.id
    #       sequenceId: {$or: @discussion.unreadRanges().map((r) -> {$between: r} )}
    #     limit: @padding
    #   remote:
    #     discussion_id: @discussion.id
    #     unread: true
    #     order_by: "sequence_id"
    #     per: @padding

    # padding around new to you
    id = max([@discussion.firstUnreadSequenceId() - parseInt(@padding/2), @discussion.firstSequenceId()])
    @rules.push
      name: {path: "strand_nav.new_to_you"}
      local:
        find:
          discussionId: @discussion.id
          sequenceId: {$jgte: id}
        limit: @padding
        order: 'sequenceId'
      remote:
        discussion_id: @discussion.id
        sequence_id_gte: id
        order_by: "sequence_id"
        per: @padding

  addRule: (rule) ->
    @rules.push(rule)
