Signal-iOS/SignalMessaging/Views/ThreadViewHelper.h
Nora Trapp fef0a2ffbf Revert "Merge branch 'nt/ipad-split-view'"
This reverts commit 3c9a3f8f21, reversing
changes made to 9a2645497e.
2019-10-21 12:35:02 -07:00

31 lines
643 B
Objective-C

//
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
//
NS_ASSUME_NONNULL_BEGIN
@protocol ThreadViewHelperDelegate <NSObject>
- (void)threadListDidChange;
@end
#pragma mark -
@class TSThread;
// A helper class for views that want to present the list of threads
// that show up in inbox, and in the same order.
//
// It observes changes to the threads & their ordering and informs
// its delegate when they happen.
@interface ThreadViewHelper : NSObject
@property (nonatomic, weak) id<ThreadViewHelperDelegate> delegate;
@property (nonatomic, readonly) NSMutableArray<TSThread *> *threads;
@end
NS_ASSUME_NONNULL_END