After dropping the 'Default' chip, _loadAccounts started setting state._libAccountId asynchronously while _loadEmails fired in parallel with the still-null id. The list request was going out with no account_id (so the server defaulted) while subsequent per-email reads used the explicit id set after _loadAccounts resolved — back to the same desync the chip-removal was meant to fix. Sequence them: await _loadAccounts first, then kick off the folders / reminders / emails fetches. The list always carries the right account_id from the very first call. |
||
|---|---|---|
| .. | ||
| fonts | ||
| js | ||
| lib | ||
| app.js | ||
| index.html | ||
| login.html | ||
| manifest.json | ||
| style.css | ||
| sw.js | ||