Merge pull request #292 from RyanRory/bubble-collapse

Fix Message Bubble Collapse UI Bug
pull/294/head 1.6.0
Niels Andriesse 4 years ago committed by GitHub
commit 5e126b6b15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -653,8 +653,6 @@ typedef enum : NSUInteger {
[self createContents]; [self createContents];
[self registerCellClasses];
[self createConversationScrollButtons]; [self createConversationScrollButtons];
[self createHeaderViews]; [self createHeaderViews];
@ -760,6 +758,8 @@ typedef enum : NSUInteger {
[self.loadMoreHeader autoSetDimension:ALDimensionHeight toSize:kLoadMoreHeaderHeight]; [self.loadMoreHeader autoSetDimension:ALDimensionHeight toSize:kLoadMoreHeaderHeight];
SET_SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, _loadMoreHeader); SET_SUBVIEW_ACCESSIBILITY_IDENTIFIER(self, _loadMoreHeader);
[self registerCellClasses];
[self updateShowLoadMoreHeader]; [self updateShowLoadMoreHeader];
} }
@ -986,7 +986,7 @@ typedef enum : NSUInteger {
self.lastReloadDate = [NSDate new]; self.lastReloadDate = [NSDate new];
[self.conversationViewModel viewDidResetContentAndLayout]; [self.conversationViewModel viewDidResetContentAndLayout];
[self.collectionView.collectionViewLayout invalidateLayout]; [self.collectionView.collectionViewLayout invalidateLayout];
[self.collectionView reloadData]; [self.collectionView reloadSections:[NSIndexSet indexSetWithIndex:0]];
if (self.viewHasEverAppeared) { if (self.viewHasEverAppeared) {
// Try to update the lastKnownDistanceFromBottom; the content size may have changed. // Try to update the lastKnownDistanceFromBottom; the content size may have changed.

Loading…
Cancel
Save