session-ios/SessionMessagingKit/To Do/OWSUserProfile.h
Morgan Pretty cf66edb723 Further work on SessionMessagingKit migrations
Added migrations for contacts and started working through thread migration (have contact and closed group threads migrating)
Deprecated usage of ECKeyPair in the migrations (want to be able to remove Curve25519Kit in the future)
2022-04-06 15:43:26 +10:00

26 lines
756 B
Objective-C

//
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
//
#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
+ (NSString *)profileAvatarFilepathWithFilename:(NSString *)filename;
+ (nullable NSError *)migrateToSharedData;
+ (NSString *)legacyProfileAvatarsDirPath;
+ (NSString *)sharedDataProfileAvatarsDirPath;
+ (NSString *)profileAvatarsDirPath;
+ (void)resetProfileStorage;
//+ (NSSet<NSString *> *)allProfileAvatarFilePaths;
@end
NS_ASSUME_NONNULL_END