Introduce conversation view mapping; rework conversation view scrolling.

This commit is contained in:
Matthew Chen 2019-01-03 14:50:45 -05:00
parent c775dbcd66
commit c5b0c73055

View file

@ -3747,7 +3747,7 @@ typedef enum : NSUInteger {
{
// Constantly update the lastKnownDistanceFromBottom,
// unless we're presenting the menu actions which
// temporarily gmeddles with the content insets.
// temporarily meddles with the content insets.
if (!OWSWindowManager.sharedManager.isPresentingMenuActions) {
self.lastKnownDistanceFromBottom = @(self.safeDistanceFromBottom);
}
@ -4303,8 +4303,6 @@ typedef enum : NSUInteger {
// content to fill the collection view at its current size.
CGFloat contentOffsetYBottom
= MAX(0.f, contentHeight + self.collectionView.contentInset.bottom - self.collectionView.bounds.size.height);
// OWSLogVerbose(@"self.collectionView.contentInset: %@",
// NSStringFromUIEdgeInsets(self.collectionView.contentInset));
return contentOffsetYBottom;
}
@ -4468,8 +4466,6 @@ typedef enum : NSUInteger {
OWSLogVerbose(@"");
// TODO:
//
// HACK to work around radar #28167779
// "UICollectionView performBatchUpdates can trigger a crash if the collection view is flagged for layout"
// more: https://github.com/PSPDFKit-labs/radar.apple.com/tree/master/28167779%20-%20CollectionViewBatchingIssue