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

Loading…
Cancel
Save