Signal-iOS/Signal
Michael Kirk 6f8eddc955 unread indicator uses sortId
- removed timestamp parameter. This wasn't totally obvious, previously we were tracking two pieces of state

1. `unreadIndicator.firstUnseenTimestamp`:
    the first unseen timestamp for a conversation that exists in the database
2. `unreadIndicator.timestamp`:
    the timestamp of the first interaction *after* the unread indicator that fits in the loading window

We don't actually need to track `2` because it was only used in a comparison like:

   viewItem.interaction.timestampForSorting >= unreadIndicator.timestamp

But by definition, unreadIndicator.firstUnseenTimestamp is always less than or
equal to unreadIndicator.timestamp. Put into terms of the `sortId` corallary,
the sortId of the first unseen interaction in the database is always less than
or equal to the sortId of the first unseen interaction that fits in the loading
window.

In other words, there's no situation where

   viewItem.interaction.sortId >= unreadIndicator.firstUnseenSortId
2018-09-26 09:52:34 -06:00
..
AudioFiles Reduce usage of JSQ. 2018-06-01 17:44:18 -04:00
Fonts Align the message state indicators with the behavior on Android and desktop. 2017-03-20 12:55:35 -04:00
Images Attachment approval: cancel/confirm to top/bottom toolbars 2017-12-11 13:58:03 -05:00
Images.xcassets Tweak tint for search bar icons in dark theme 2018-08-22 12:00:44 -06:00
src unread indicator uses sortId 2018-09-26 09:52:34 -06:00
test Respond to CR; add db utility methods to test base classes. 2018-09-21 09:21:34 -04:00
translations Merge tag '2.29.3.3' 2018-09-15 09:17:08 -05:00
.swiftlint.yml
iTunesArtwork@3x.png
main.m
Signal-Info.plist "Bump build to 2.30.1.0." 2018-09-25 15:42:20 -06:00
Signal-Prefix.pch Update assertions. 2018-09-14 14:30:06 -04:00
Signal.entitlements Disable CloudKit; leave iCloud capability enabled for "iCloud documents" service used by document picker. 2018-06-06 08:48:58 -06:00
SignalTSan.supp TSan config 2018-07-30 12:31:21 -06:00
SignalUBSan.supp Add missing header file 2018-08-08 10:17:03 -06:00