Re-enable attachment cleanup migration after fixing it in SSK (#1298)

// FREEBIE
This commit is contained in:
Michael Kirk 2016-08-01 10:41:10 -07:00 committed by GitHub
parent 000a5941f4
commit 92b3ea5d25
2 changed files with 5 additions and 8 deletions

View File

@ -130,7 +130,7 @@ EXTERNAL SOURCES:
CHECKOUT OPTIONS:
SignalServiceKit:
:commit: c14e4bb7b372a8277860f27ebd7eed7637828395
:commit: 9aa88f6ce5c16ee36509a8698e191560328aa2e5
:git: https://github.com/WhisperSystems/SignalServiceKit.git
SocketRocket:
:commit: 8096fef47d582bff8ae3758c9ae7af1d55ea53d6

View File

@ -63,13 +63,10 @@
[self clearBloomFilterCache];
}
// 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];
// }
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];
}