You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-ios/SignalMessaging/utils
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
7 years ago
..
Bench.swift benchmark migration 7 years ago
BlockListCache.swift add docs to BlockListCache 7 years ago
BlockListUIUtils.h Use cached group details when rendering blocklist 7 years ago
BlockListUIUtils.m Merge tag '2.29.3.3' 7 years ago
ConversationSearcher.swift sort search results by sortId 7 years ago
ConversationStyle.swift New grayscale palette. 7 years ago
DebugLogger.h Revert "Revert "Merge branch 'charlesmchen/debugLogs' into hotfix/2.20.1"" 8 years ago
DebugLogger.m Apply OWS log functions in Objective-C. 7 years ago
DeviceSleepManager.swift Use swift macros for main thread assert 7 years ago
DisplayableText.swift Unify log tags. 7 years ago
ImageCache.swift Fix tests broken by SAE. 8 years ago
LRUCache.swift Rename fail macros in Swift. 7 years ago
OWSAudioPlayer.h Respect system alert volume for notifications while in app 8 years ago
OWSAudioPlayer.m Step 2/2 %s/OWSAssert/OWSAssertDebug for existing previous assert semantics 7 years ago
OWSAvatarBuilder.h Share a photo from photos app 8 years ago
OWSAvatarBuilder.m Step 2/2 %s/OWSAssert/OWSAssertDebug for existing previous assert semantics 7 years ago
OWSContactAvatarBuilder.h conversation colors 7 years ago
OWSContactAvatarBuilder.m Step 2/2 %s/OWSAssert/OWSAssertDebug for existing previous assert semantics 7 years ago
OWSFormat.h Respond to CR. 8 years ago
OWSFormat.m Respond to CR. 8 years ago
OWSGroupAvatarBuilder.h Use cached group details when rendering blocklist 7 years ago
OWSGroupAvatarBuilder.m Use cached group details when rendering blocklist 7 years ago
OWSMath.h Move seed 7 years ago
OWSPreferences.h CR: clean up preferences 7 years ago
OWSPreferences.m Step 2/2 %s/OWSAssert/OWSAssertDebug for existing previous assert semantics 7 years ago
OWSScreenLock.swift Rename fail macros in Swift. 7 years ago
OWSScrubbingLogFormatter.h
OWSScrubbingLogFormatter.m cherry-pick Merge branch 'charlesmchen/logSdp' 7 years ago
OWSUnreadIndicator.h unread indicator uses sortId 7 years ago
OWSUnreadIndicator.m unread indicator uses sortId 7 years ago
OWSWindowManager.h rename to avoid confusion 7 years ago
OWSWindowManager.m New resolutions for call banner, rename to accommodate multiple X devices. 7 years ago
Searcher.swift Fix tests. 8 years ago
ThreadUtil.h minimize diff senderTimestamp -> timestamp 7 years ago
ThreadUtil.m unread indicator uses sortId 7 years ago
UIImage+OWS.swift Code cleanup per code review 7 years ago
UIUtil.h remove appearance juggling 7 years ago
UIUtil.m Code cleanup per code review 7 years ago
Weak.swift Don't de-activate audio sesion when other audio activities are happening 8 years ago