refactor: reduce CalDAV sync to login and manual sync button only

- Remove auto-login sync in AuthGuard
- Remove 10s interval sync and syncAndReload in calendar tab
- Remove lazy syncOnce pattern in ChatService AI callbacks
- Remove CaldavService dependency from ChatService constructor
This commit is contained in:
2026-02-09 23:32:04 +01:00
parent 5a9485acfc
commit b9ffc6c908
4 changed files with 3 additions and 45 deletions

View File

@@ -62,11 +62,6 @@ export const AuthGuard = ({ children }: AuthGuardProps) => {
if (!useAuthStore.getState().isAuthenticated) return;
await preloadAppData();
setDataReady(true);
try {
await CaldavConfigService.sync();
} catch {
// No CalDAV config or sync failed — not critical
}
};
init();
}, [loadStoredUser]);