2017-10-10 22:13:54 +02:00
|
|
|
//
|
2018-04-21 19:45:45 +02:00
|
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
2017-10-10 22:13:54 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
#import "ConversationViewCell.h"
|
|
|
|
#import "ConversationViewItem.h"
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@implementation ConversationViewCell
|
|
|
|
|
|
|
|
- (void)prepareForReuse
|
|
|
|
{
|
|
|
|
[super prepareForReuse];
|
|
|
|
|
|
|
|
self.viewItem = nil;
|
|
|
|
self.delegate = nil;
|
|
|
|
self.isCellVisible = NO;
|
2018-06-25 21:20:17 +02:00
|
|
|
self.conversationStyle = nil;
|
2017-10-10 22:13:54 +02:00
|
|
|
}
|
|
|
|
|
2018-08-09 16:47:43 +02:00
|
|
|
- (void)loadForDisplay
|
2017-10-10 22:13:54 +02:00
|
|
|
{
|
2018-08-08 20:29:07 +02:00
|
|
|
OWSAbstractMethod();
|
2017-10-10 22:13:54 +02:00
|
|
|
}
|
|
|
|
|
2018-08-09 16:47:43 +02:00
|
|
|
- (CGSize)cellSize
|
2017-10-10 22:13:54 +02:00
|
|
|
{
|
2018-08-08 20:29:07 +02:00
|
|
|
OWSAbstractMethod();
|
2018-06-22 19:48:23 +02:00
|
|
|
|
2017-10-10 22:13:54 +02:00
|
|
|
return CGSizeZero;
|
|
|
|
}
|
|
|
|
|
2018-08-09 16:08:51 +02:00
|
|
|
// For perf reasons, skip the default implementation which is only relevant for self-sizing cells.
|
|
|
|
- (UICollectionViewLayoutAttributes *)preferredLayoutAttributesFittingAttributes:
|
|
|
|
(UICollectionViewLayoutAttributes *)layoutAttributes
|
|
|
|
{
|
|
|
|
return layoutAttributes;
|
|
|
|
}
|
|
|
|
|
2017-10-10 22:13:54 +02:00
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|