|
|
|
@ -10,6 +10,11 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
// Increment a similar constant for every future DBMigration
|
|
|
|
|
static NSString *const OWS101ExistingUsersBlockOnIdentityChangeMigrationId = @"101";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This migration is no longer necessary, but deleting a class is complicated in Yap
|
|
|
|
|
* and involves writing another migration to remove the previous. It seemed like the
|
|
|
|
|
* simplest/safest thing to do would be to just leave it.
|
|
|
|
|
*/
|
|
|
|
|
@implementation OWS101ExistingUsersBlockOnIdentityChange
|
|
|
|
|
|
|
|
|
|
+ (NSString *)migrationId
|
|
|
|
@ -20,10 +25,7 @@ static NSString *const OWS101ExistingUsersBlockOnIdentityChangeMigrationId = @"1
|
|
|
|
|
- (void)runUpWithTransaction:(YapDatabaseReadWriteTransaction *)transaction
|
|
|
|
|
{
|
|
|
|
|
DDLogWarn(@"[OWS101ExistingUsersBlockOnIdentityChange] has been obviated.");
|
|
|
|
|
// DDLogWarn(@"[OWS101ExistingUsersBlockOnIdentityChange] Opting existing user into 'blocking' on identity
|
|
|
|
|
// changes."); TSPrivacyPreferences *preferences = [TSPrivacyPreferences sharedInstance];
|
|
|
|
|
// preferences.shouldBlockOnIdentityChange = YES;
|
|
|
|
|
// [preferences saveWithTransaction:transaction];
|
|
|
|
|
OWSAssert(NO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|