mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
267462c584
* Improve thread safety of home view cells. // FREEBIE
34 lines
978 B
Objective-C
34 lines
978 B
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import "TSThread.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class OWSContactsManager;
|
|
|
|
typedef enum : NSUInteger { kArchiveState = 0, kInboxState = 1 } CellState;
|
|
|
|
@interface InboxTableViewCell : UITableViewCell <UIScrollViewDelegate>
|
|
|
|
@property (nonatomic) IBOutlet UILabel *nameLabel;
|
|
@property (nonatomic) IBOutlet UILabel *snippetLabel;
|
|
@property (nonatomic) IBOutlet UIImageView *contactPictureView;
|
|
@property (nonatomic) IBOutlet UILabel *timeLabel;
|
|
@property (nonatomic) IBOutlet UIView *contentContainerView;
|
|
@property (nonatomic) IBOutlet UIView *messageCounter;
|
|
@property (nonatomic) NSString *threadId;
|
|
|
|
+ (instancetype)inboxTableViewCell;
|
|
|
|
- (void)configureWithThread:(TSThread *)thread
|
|
contactsManager:(OWSContactsManager *)contactsManager
|
|
blockedPhoneNumberSet:(NSSet<NSString *> *)blockedPhoneNumberSet;
|
|
|
|
- (void)animateDisappear;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|