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
		
	
	
	
		
			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
 |