mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Introduce conversation view mapping; rework conversation view scrolling.
This commit is contained in:
parent
c775dbcd66
commit
c5b0c73055
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue