|
|
|
@ -16,7 +16,9 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
@property (nonatomic, nullable) UIImageView *cachedImageView;
|
|
|
|
|
@property (nonatomic, nullable) AttachmentUploadView *attachmentUploadView;
|
|
|
|
|
@property (nonatomic) BOOL incoming;
|
|
|
|
|
@property (nonatomic, nullable, weak) id lastCell;
|
|
|
|
|
|
|
|
|
|
// See comments on OWSMessageMediaAdapter.
|
|
|
|
|
@property (nonatomic, nullable, weak) id lastPresentingCell;
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
@ -146,11 +148,11 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
// Ignore.
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (void)clearCachedMediaViewsIfLastCell:(id)cell
|
|
|
|
|
- (void)clearCachedMediaViewsIfLastPresentingCell:(id)cell
|
|
|
|
|
{
|
|
|
|
|
OWSAssert(cell);
|
|
|
|
|
|
|
|
|
|
if (cell == self.lastCell) {
|
|
|
|
|
if (cell == self.lastPresentingCell) {
|
|
|
|
|
[self clearCachedMediaViews];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|