mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
26 lines
588 B
Objective-C
26 lines
588 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;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|