This commit is contained in:
seb
2026-10-28 22:25:58 +01:00
parent 87ef79bea3
commit 6d299c1f43
2 changed files with 4 additions and 12 deletions

View File

@@ -128,17 +128,9 @@ function buildAuthState(user, status, extra = {}) {
}
function syncSse(state) {
if (state.hasAuth) {
void import('./sseAutomat')
.then(({ default: sseAutomat }) => {
sseAutomat.actions.syncWithAuth?.(state);
})
.catch(() => { });
} else {
const sseAutomat = Automat.get('sse');
if (sseAutomat?.actions?.syncWithAuth) {
sseAutomat.actions.syncWithAuth(state);
}
const sseAutomat = Automat.get('sse');
if (sseAutomat?.actions?.syncWithAuth) {
sseAutomat.actions.syncWithAuth(state);
}
}