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