2017-08-02 19:12:26 +02:00
|
|
|
//
|
|
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
@class TSThread;
|
2017-08-21 17:21:23 +02:00
|
|
|
@class OWSAES256Key;
|
2017-08-02 19:12:26 +02:00
|
|
|
|
2017-08-25 23:16:49 +02:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2017-08-02 19:12:26 +02:00
|
|
|
@protocol ProfileManagerProtocol <NSObject>
|
|
|
|
|
2017-08-21 17:21:23 +02:00
|
|
|
- (OWSAES256Key *)localProfileKey;
|
2017-08-02 19:12:26 +02:00
|
|
|
|
2017-08-25 23:16:49 +02:00
|
|
|
- (nullable NSData *)profileKeyDataForRecipientId:(NSString *)recipientId;
|
2017-08-14 17:31:43 +02:00
|
|
|
- (void)setProfileKeyData:(NSData *)profileKeyData forRecipientId:(NSString *)recipientId;
|
2017-08-02 19:12:26 +02:00
|
|
|
|
|
|
|
- (BOOL)isUserInProfileWhitelist:(NSString *)recipientId;
|
|
|
|
|
|
|
|
- (BOOL)isThreadInProfileWhitelist:(TSThread *)thread;
|
|
|
|
|
2017-08-04 15:33:56 +02:00
|
|
|
- (void)addUserToProfileWhitelist:(NSString *)recipientId;
|
|
|
|
|
2017-08-02 19:12:26 +02:00
|
|
|
@end
|
2017-08-25 23:16:49 +02:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|