Merge branch 'charlesmchen/streamlineRelayout'

pull/1/head
Matthew Chen 8 years ago
commit 82bcffe773

@ -81,24 +81,6 @@ NS_ASSUME_NONNULL_BEGIN
[super setContentOffset:contentOffset];
}
- (void)reloadData
{
DDLogVerbose(@"%@ reloadData", self.logTag);
[super reloadData];
}
- (void)reloadSections:(NSIndexSet *)sections
{
DDLogVerbose(@"%@ reloadSections", self.logTag);
[super reloadSections:sections];
}
- (void)reloadItemsAtIndexPaths:(NSArray<NSIndexPath *> *)indexPaths
{
DDLogVerbose(@"%@ reloadItemsAtIndexPaths", self.logTag);
[super reloadItemsAtIndexPaths:indexPaths];
}
#pragma mark - Logging
+ (NSString *)logTag

@ -2926,13 +2926,11 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) {
}
[self.collectionView reloadItemsAtIndexPaths:rowsToReload];
}
completion:^(BOOL success) {
completion:^(BOOL finished) {
OWSAssert([NSThread isMainThread]);
if (!success) {
[self resetContentAndLayout];
} else {
[self.collectionView.collectionViewLayout invalidateLayout];
if (!finished) {
DDLogInfo(@"%@ performBatchUpdates did not finish", self.tag);
}
[self updateLastVisibleTimestamp];

Loading…
Cancel
Save