mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
61f59067b6
* Add support for contacts with more than one Signal account using ContactAccount class. * Use OWSTableViewController in contact-related views. * Let users add non-contacts to groups. * Improve the "new group" and "edit group" views. * Add utility methods for displaying alerts. * Warn users before discarding unsaved changes in "edit group" view. * Pull out "contact view helper" to de-duplicate common logic among contact-related views. * Pull out "group view helper" to de-duplicate common logic among group-related views. * Pull out new base class for view used to add accounts to groups or the block list. // FREEBIE
29 lines
643 B
Objective-C
29 lines
643 B
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
@class TSThread;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@protocol SelectThreadViewControllerDelegate <NSObject>
|
|
|
|
- (void)threadWasSelected:(TSThread *)thread;
|
|
|
|
- (BOOL)canSelectBlockedContact;
|
|
|
|
- (nullable UIView *)createHeaderWithSearchBar:(UISearchBar *)searchBar;
|
|
|
|
@end
|
|
|
|
#pragma mark -
|
|
|
|
// A base class for views used to pick a single signal user, either by
|
|
// entering a phone number or picking from your contacts.
|
|
@interface SelectThreadViewController : UIViewController
|
|
|
|
@property (nonatomic, weak) id<SelectThreadViewControllerDelegate> delegate;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|