mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
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:
parent
9f2bb5d2cc
commit
000a5941f4
1 changed files with 7 additions and 4 deletions
|
@ -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…
Reference in a new issue