Delete attachment cleanup migration.

After running locally, I noticed many old threads missing old
attachments. I'll do some further investigation.

// FREEBIE
This commit is contained in:
Michael Kirk 2016-08-01 08:17:41 -07:00
parent 9f2bb5d2cc
commit 000a5941f4

View file

@ -63,10 +63,13 @@
[self clearBloomFilterCache];
}
if ([self isVersion:previousVersion atLeast:@"2.0.0" andLessThan:@"2.4.1"] && [TSAccountManager isRegistered]) {
DDLogInfo(@"Running migration: removing orphaned data.");
[[OWSOrphanedDataCleaner new] removeOrphanedData];
}
// Disabled until further stability testing is done. After some local testing, I saw missing attachments. - MJK
//
// if ([self isVersion:previousVersion atLeast:@"2.0.0" andLessThan:@"2.4.1"] && [TSAccountManager isRegistered])
// {
// DDLogInfo(@"Running migration: removing orphaned data.");
// [[OWSOrphanedDataCleaner new] removeOrphanedData];
// }
[Environment.preferences setAndGetCurrentVersion];
}