mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
519ffa4405
This should improve performance significantly as it avoids many unnecessary sync transactions. It also makes the code more readable.
30 lines
839 B
Objective-C
30 lines
839 B
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
@class OWSAES256Key;
|
|
@class TSThread;
|
|
@class YapDatabaseReadWriteTransaction;
|
|
@class SNContact;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@protocol ProfileManagerProtocol <NSObject>
|
|
|
|
#pragma mark - Local Profile
|
|
|
|
- (void)updateServiceWithProfileName:(nullable NSString *)localProfileName avatarURL:(nullable NSString *)avatarURL;
|
|
|
|
#pragma mark - Other User's Profiles
|
|
|
|
- (nullable NSData *)profileKeyDataForRecipientId:(NSString *)recipientId;
|
|
- (void)setProfileKeyData:(NSData *)profileKeyData forRecipientId:(NSString *)recipientId;
|
|
- (void)setProfileKeyData:(NSData *)profileKeyData forRecipientId:(NSString *)recipientId avatarURL:(nullable NSString *)avatarURL;
|
|
|
|
#pragma mark - Other
|
|
|
|
- (void)downloadAvatarForUserProfile:(SNContact *)userProfile;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|