2017-12-08 19:22:01 +01:00
|
|
|
//
|
2018-03-02 22:01:08 +01:00
|
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
2017-12-08 19:22:01 +01:00
|
|
|
//
|
|
|
|
|
2020-11-23 00:24:40 +01:00
|
|
|
#import <SessionUtilitiesKit/TSYapDatabaseObject.h>
|
2017-12-08 19:22:01 +01:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2017-12-08 19:45:24 +01:00
|
|
|
extern NSString *const kNSNotificationName_LocalProfileDidChange;
|
|
|
|
extern NSString *const kNSNotificationName_OtherUsersProfileDidChange;
|
|
|
|
extern NSString *const kNSNotificationKey_ProfileRecipientId;
|
|
|
|
|
2017-12-08 19:22:01 +01:00
|
|
|
@interface OWSUserProfile : TSYapDatabaseObject
|
|
|
|
|
2018-08-01 15:39:21 +02:00
|
|
|
+ (NSString *)profileAvatarFilepathWithFilename:(NSString *)filename;
|
|
|
|
+ (nullable NSError *)migrateToSharedData;
|
2018-08-02 21:21:59 +02:00
|
|
|
+ (NSString *)legacyProfileAvatarsDirPath;
|
|
|
|
+ (NSString *)sharedDataProfileAvatarsDirPath;
|
2018-08-01 15:39:21 +02:00
|
|
|
+ (NSString *)profileAvatarsDirPath;
|
|
|
|
+ (void)resetProfileStorage;
|
2018-08-02 21:18:40 +02:00
|
|
|
+ (NSSet<NSString *> *)allProfileAvatarFilePaths;
|
2018-08-01 15:39:21 +02:00
|
|
|
|
2017-12-08 19:22:01 +01:00
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|