Ask shared accounts together, and about files only when Files opens

At sign-in the files, contacts and calendar stores each asked every shared
account a question, one account after another: a request apiece before the
reader had opened any of those views.

Files now only works out at sign-in whether it is available. Which shared
accounts hold files is asked when the Files view or the file picker opens,
which the Files view already did on every visit. Shared address books and
calendars are asked for in one request, and the calendar store loads its
calendars, identities and shared calendars side by side.
This commit is contained in:
jcoffey-dev committed 2026-09-16 10:04:24 -07:00
1 parent 9560ad06f4
commit 4c7b2ec370
6 files changed
+142 -31

No files matched your search

+1
View File
@@ -32,6 +32,7 @@ async function refreshShares(force = false): Promise<void> {
return;
}
await useFiles.getState().init();
await useFiles.getState().discoverShared();
}