Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

Remove some processing from bootstraper init

Hakan Shehued92a4dcc19e
diff --git a/apps/desktop/src/main/bootstrapper.ts b/apps/desktop/src/main/bootstrapper.ts
index fea63080..3f2cbe0f 100644
--- a/apps/desktop/src/main/bootstrapper.ts
+++ b/apps/desktop/src/main/bootstrapper.ts
@@ -32,13 +32,10 @@ class Bootstrapper {
this.debug('Initializing');
await databaseService.init();
- await serverService.syncServers();
- await radarService.init();
- await socketService.checkConnections();
- notificationService.init();
+ radarService.init();
if (!this.eventLoop) {
- this.eventLoop = setTimeout(this.executeEventLoop, 50);
+ this.eventLoop = setTimeout(this.executeEventLoop, 20);
}
}
diff --git a/apps/desktop/src/main/services/notification-service.ts b/apps/desktop/src/main/services/notification-service.ts
index 6ae25f68..dac37654 100644
--- a/apps/desktop/src/main/services/notification-service.ts
+++ b/apps/desktop/src/main/services/notification-service.ts
@@ -16,10 +16,6 @@ class NotificationService {
});
}
- public init() {
- this.checkBadge();
- }
-
public checkBadge() {
if (process.platform !== 'darwin') {
return;