Delete attachment cleanup migration.

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

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent 9f2bb5d2cc
commit 000a5941f4

@ -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];
}

Loading…
Cancel
Save