Add more migration options

This commit is contained in:
yflory
2019-10-28 18:22:42 +01:00
parent f6bbe70f3c
commit 176e667128
4 changed files with 41 additions and 23 deletions

View File

@@ -39,6 +39,13 @@ define([
userObject: userObject,
leave: leave
};
if (false) { // XXX allow shared folder migration while using it
// NOTE: this is not needed if we always use the editKey in userObject, even with old version
var path = proxy.drive ? ['drive', 'version'] : ['version'];
proxy.on('change', path, function () {
userObject.setReadOnly(false, editKey);
});
}
return userObject;
};