Offline shared folders

pull/1/head
yflory 4 years ago
parent ca8623e020
commit f7477b65ea

@ -2565,8 +2565,21 @@ define([
rt: store.realtime rt: store.realtime
}); });
var userObject = store.userObject = manager.user.userObject; var userObject = store.userObject = manager.user.userObject;
addSharedFolderHandler(); nThen(function (waitFor) {
userObject.migrate(cb); addSharedFolderHandler();
userObject.migrate(waitFor());
}).nThen(function (waitFor) {
var network = store.network || store.networkPromise;
SF.loadSharedFolders(Store, network, store, userObject, waitFor, function (obj) {
var data = {
type: 'sf',
progress: 100*obj.progress/obj.max
};
postMessage(clientId, 'LOADING_DRIVE', data);
});
}).nThen(function () {
cb();
});
}; };
// onReady: called when the drive is synced (not using the cache anymore) // onReady: called when the drive is synced (not using the cache anymore)

Loading…
Cancel
Save