mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
801 B
Matlab
44 lines
801 B
Matlab
8 years ago
|
//
|
||
7 years ago
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||
8 years ago
|
//
|
||
|
|
||
|
#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;
|
||
7 years ago
|
self.conversationStyle = nil;
|
||
8 years ago
|
}
|
||
|
|
||
7 years ago
|
- (void)loadForDisplay
|
||
8 years ago
|
{
|
||
7 years ago
|
OWSAbstractMethod();
|
||
8 years ago
|
}
|
||
|
|
||
7 years ago
|
- (CGSize)cellSize
|
||
8 years ago
|
{
|
||
7 years ago
|
OWSAbstractMethod();
|
||
7 years ago
|
|
||
8 years ago
|
return CGSizeZero;
|
||
|
}
|
||
|
|
||
7 years ago
|
// For perf reasons, skip the default implementation which is only relevant for self-sizing cells.
|
||
|
- (UICollectionViewLayoutAttributes *)preferredLayoutAttributesFittingAttributes:
|
||
|
(UICollectionViewLayoutAttributes *)layoutAttributes
|
||
|
{
|
||
|
return layoutAttributes;
|
||
|
}
|
||
|
|
||
8 years ago
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|