Skip to content

fix: select personal account (isPersonal) instead of first in account…#2762

Merged
tammi-23 merged 1 commit into
mainfrom
fix/change_account_selection
Jun 29, 2026
Merged

fix: select personal account (isPersonal) instead of first in account…#2762
tammi-23 merged 1 commit into
mainfrom
fix/change_account_selection

Conversation

@tammi-23

Copy link
Copy Markdown
Contributor

After the Stalwart 0.16 upgrade, the /groupware/accounts endpoint returns accounts in a different order. Previously the user's personal account happened to be first in the list, so defaulting to accounts[0] selected the correct account on load.
Now a shared account (e.g. a group/list mailbox like programmers@example.org) can come first, which has isPersonal: false. As a result the account switcher pre-selected the shared mailbox instead of the user's own account on initial load.

This has been fixed by loadCurrentAccount no longer falls back to the first account in the list. It now prefers the account flagged with isPersonal: true

@tammi-23 tammi-23 merged commit a91d235 into main Jun 29, 2026
30 checks passed
@tammi-23 tammi-23 deleted the fix/change_account_selection branch June 29, 2026 15:24
@openclouders openclouders mentioned this pull request Jun 29, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants