Don't automatically connect to realys in init()

This commit is contained in:
Sosthene 2025-07-02 11:34:30 +02:00
parent 58fed7a53b
commit dbb7f67154
2 changed files with 5 additions and 1 deletions

View File

@ -148,9 +148,14 @@ export async function init(): Promise<void> {
} else {
services.restoreDevice(device);
}
// If we create a new device, we most probably don't have anything in db, but just in case
await services.restoreProcessesFromDB();
await services.restoreSecretsFromDB();
// We connect to all relays now
await services.connectAllRelays();
// We register all the event listeners if we run in an iframe
if (window.self !== window.top) {
await registerAllListeners();

View File

@ -62,7 +62,6 @@ export default class Services {
for (const wsurl of Object.values(BOOTSTRAPURL)) {
this.updateRelay(wsurl, '');
}
await this.connectAllRelays();
}
public setProcessId(processId: string | null) {