57 lines
1.4 KiB
Objective-C
57 lines
1.4 KiB
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "OWSOutgoingMessageCell.h"
|
|
#import "ConversationViewItem.h"
|
|
#import "UIView+OWS.h"
|
|
#import <SignalServiceKit/TSOutgoingMessage.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@implementation OWSOutgoingMessageCell
|
|
|
|
+ (NSString *)cellReuseIdentifier
|
|
{
|
|
return NSStringFromClass([self class]);
|
|
}
|
|
|
|
- (BOOL)isIncoming
|
|
{
|
|
return NO;
|
|
}
|
|
|
|
//- (void)prepareForReuse
|
|
//{
|
|
// [super prepareForReuse];
|
|
// self.mediaView.alpha = 1.0;
|
|
// self.expirationTimerViewWidthConstraint.constant = 0.0f;
|
|
//
|
|
// [self.mediaAdapter setCellVisible:NO];
|
|
//
|
|
// // Clear this adapter's views IFF this was the last cell to use this adapter.
|
|
// [self.mediaAdapter clearCachedMediaViewsIfLastPresentingCell:self];
|
|
// [_mediaAdapter setLastPresentingCell:nil];
|
|
//
|
|
// self.mediaAdapter = nil;
|
|
//}
|
|
//
|
|
//// pragma mark - OWSExpirableMessageView
|
|
//
|
|
//- (void)startExpirationTimerWithExpiresAtSeconds:(double)expiresAtSeconds
|
|
// initialDurationSeconds:(uint32_t)initialDurationSeconds
|
|
//{
|
|
// self.expirationTimerViewWidthConstraint.constant = OWSExpirableMessageViewTimerWidth;
|
|
// [self.expirationTimerView startTimerWithExpiresAtSeconds:expiresAtSeconds
|
|
// initialDurationSeconds:initialDurationSeconds];
|
|
//}
|
|
//
|
|
//- (void)stopExpirationTimer
|
|
//{
|
|
// [self.expirationTimerView stopTimer];
|
|
//}
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|