merge: codex/outline-call-request-workflow into main

This commit is contained in:
AidarKC
2026-04-16 01:27:48 +03:00
13 changed files with 669 additions and 2 deletions
+10
View File
@@ -2,6 +2,7 @@ import { navigate, getRoute, PRE_AUTH_PAGES } from './router.js';
import { renderToolbar } from './components/toolbar.js';
import { captureClientError, setClientErrorTransport } from './services/client-error-reporter.js';
import { initPwaPush } from './services/pwa-push-service.js';
import { handleIncomingCallInvite, handleIncomingCallSignal } from './services/call-service.js';
import {
authService,
addAppLogEntry,
@@ -381,6 +382,15 @@ async function init() {
}
}
});
authService.onEvent('IncomingCallInvite', async (evt) => {
try { await handleIncomingCallInvite(evt); } catch {}
});
authService.onEvent('IncomingCallSignal', async (evt) => {
try { await handleIncomingCallSignal(evt); } catch {}
});
await tryAutoLogin();
await ensureSessionRuntimeStarted();