Fix file app not able to load the account

This commit is contained in:
yflory 2025-03-05 12:48:06 +01:00
parent 6ac7e0fc8f
commit e8dfdebeee
2 changed files with 19 additions and 0 deletions

View File

@ -3270,6 +3270,24 @@ const factory = (ApiConfig = {}, Sortify, UserObject, ProxyManager,
onPadRejectedEvt.reg(next);
});
}
if (requires === 'file') {
// Start with only the pad modules, callback
// and then load the account and other modules
return void onNoDrive(clientId, function (obj) {
if (obj && obj.error) {
// handle error
return; // XXX
}
// Callback now to unfreeze the loading screen
// Pad can now start to be loaded
cb(obj);
loadDrive(clientId, data, ret => {
startCacheModules(clientId, ret, onInit);
}, ret => {
startModules(clientId, ret, onInit);
});
});
}
if (requires === 'team') {
const initTeams = Util.once(ret => {

View File

@ -27,6 +27,7 @@ define([
noDrive: true,
hash: hash,
href: href,
requires: 'file',
noRealtime: true,
addData: addData
});