27 lines
644 B
Objective-C
27 lines
644 B
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
@class TSThread;
|
|
@class OWSAES256Key;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@protocol ProfileManagerProtocol <NSObject>
|
|
|
|
- (OWSAES256Key *)localProfileKey;
|
|
|
|
- (nullable NSData *)profileKeyDataForRecipientId:(NSString *)recipientId;
|
|
- (void)setProfileKeyData:(NSData *)profileKeyData forRecipientId:(NSString *)recipientId;
|
|
|
|
- (BOOL)isUserInProfileWhitelist:(NSString *)recipientId;
|
|
|
|
- (BOOL)isThreadInProfileWhitelist:(TSThread *)thread;
|
|
|
|
- (void)addUserToProfileWhitelist:(NSString *)recipientId;
|
|
- (void)addGroupIdToProfileWhitelist:(NSData *)groupId;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|