diff --git a/Signal/src/ViewControllers/ConversationView/Cells/ConversationViewCell.m b/Signal/src/ViewControllers/ConversationView/Cells/ConversationViewCell.m index b49e302b5..de62f0786 100644 --- a/Signal/src/ViewControllers/ConversationView/Cells/ConversationViewCell.m +++ b/Signal/src/ViewControllers/ConversationView/Cells/ConversationViewCell.m @@ -40,6 +40,13 @@ NS_ASSUME_NONNULL_BEGIN } } +// For perf reasons, skip the default implementation which is only relevant for self-sizing cells. +- (UICollectionViewLayoutAttributes *)preferredLayoutAttributesFittingAttributes: + (UICollectionViewLayoutAttributes *)layoutAttributes +{ + return layoutAttributes; +} + @end NS_ASSUME_NONNULL_END