feat: include directory users in recipient autocomplete

This commit is contained in:
Linus Rath
2026-06-14 14:52:13 +02:00
parent e8feb11983
commit b32e102ff9
3 changed files with 79 additions and 0 deletions
+7
View File
@@ -239,6 +239,13 @@ function initializeFeatureStores(client: IJMAPClient): void {
useContactStore.getState().setSupportsSync(false);
}
// Directory (RFC 9670 principals) is independent of contacts support and only
// works when the server allows directory queries; populates recipient
// autocomplete with other users on the server.
if (client.supportsPrincipals()) {
useContactStore.getState().fetchDirectory(client).catch((err) => debug.error('Failed to fetch directory:', err));
}
const vacationStore = useVacationStore.getState();
if (client.supportsVacationResponse()) {
vacationStore.setSupported(true);