Remove duplicates when migrating anon drive into user drive

This commit is contained in:
yflory
2019-02-21 17:40:34 +01:00
parent 6aa617e41e
commit 0d996b8ed4
2 changed files with 13 additions and 1 deletions

View File

@@ -176,6 +176,16 @@ define([
if (version < 7) {
addRoHref();
}
}).nThen(function () {
// Migration 8: remove duplicate entries in proxy.FS_hashes (list of migrated anon drives)
var fixDuplicate = function () {
userObject.FS_hashes = Util.deduplicateString(userObject.FS_hashes);
};
if (version < 8) {
fixDuplicate();
Feedback.send('Migrate-8', true);
userObject.version = version = 8;
}
/*}).nThen(function (waitFor) {
// Test progress bar in the loading screen
var i = 0;