mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
49de772997
Fix animation memory leak exacerbated every time you reload a conversation with expiration timers. Stop animation on cells that aren't currently being displayed. This is relatively minor compared to the above, but still, no reason to waste cycles. // FREEBIE
22 lines
681 B
Objective-C
22 lines
681 B
Objective-C
// Created by Michael Kirk on 9/29/16.
|
|
// Copyright © 2016 Open Whisper Systems. All rights reserved.
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class OWSExpirationTimerView;
|
|
|
|
static const CGFloat OWSExpirableMessageViewTimerWidth = 10.0f;
|
|
|
|
@protocol OWSExpirableMessageView
|
|
|
|
@property (strong, nonatomic, readonly) IBOutlet OWSExpirationTimerView *expirationTimerView;
|
|
@property (strong, nonatomic, readonly) IBOutlet NSLayoutConstraint *expirationTimerViewWidthConstraint;
|
|
|
|
- (void)startExpirationTimerWithExpiresAtSeconds:(uint64_t)expiresAtSeconds
|
|
initialDurationSeconds:(uint32_t)initialDurationSeconds;
|
|
|
|
- (void)stopExpirationTimer;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|