mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
44 lines
801 B
Objective-C
44 lines
801 B
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#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;
|
|
self.conversationStyle = nil;
|
|
}
|
|
|
|
- (void)loadForDisplay
|
|
{
|
|
OWSAbstractMethod();
|
|
}
|
|
|
|
- (CGSize)cellSize
|
|
{
|
|
OWSAbstractMethod();
|
|
|
|
return CGSizeZero;
|
|
}
|
|
|
|
// 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
|