session-ios/SessionMessagingKit/To Do/OWSUserProfile.h

26 lines
748 B
C
Raw Normal View History

//
2018-03-02 22:01:08 +01:00
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
//
2020-11-23 00:24:40 +01:00
#import <SessionUtilitiesKit/TSYapDatabaseObject.h>
NS_ASSUME_NONNULL_BEGIN
extern NSString *const kNSNotificationName_LocalProfileDidChange;
extern NSString *const kNSNotificationName_OtherUsersProfileDidChange;
extern NSString *const kNSNotificationKey_ProfileRecipientId;
@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
@end
NS_ASSUME_NONNULL_END