Open-source and local-first Slack and Notion alternative that puts you in control of your data
TypeScript chatchat-applicationcrdteditorelectronknowledge-baselocal-firstnotionnotion-alternativerealtime-collaborationself-hostedslacksqliteteam-collaborationwikiyjs
Fix notification counters
Hakan Shehu71600473f266
diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.tsindex 8abba56d..6f5e702c 100644--- a/apps/desktop/src/main.ts+++ b/apps/desktop/src/main.ts@@ -4,6 +4,7 @@ import { app, BrowserWindow, ipcMain, protocol } from 'electron';import path from 'path';import { metadataService } from '@/main/services/metadata-service';+import { notificationService } from '@/main/services/notification-service';import { WindowSize } from '@/shared/types/metadata';import { createDebugger } from '@/main/debugger';import { scheduler } from '@/main/scheduler';@@ -31,6 +32,7 @@ if (started) {const createWindow = async () => {await scheduler.init();+ notificationService.checkBadge();// Create the browser window.let windowSize = await metadataService.get<WindowSize>('window_size');diff --git a/apps/desktop/src/main/services/radar-service.ts b/apps/desktop/src/main/services/radar-service.tsindex 72615856..34de964c 100644--- a/apps/desktop/src/main/services/radar-service.ts+++ b/apps/desktop/src/main/services/radar-service.ts@@ -193,8 +193,8 @@ class RadarWorkspace {this.unreadMessages.set(message.id, {messageId: message.id,- parentId: message.rootId,- parentIdType: getIdType(message.rootId),+ parentId: message.parentId,+ parentIdType: getIdType(message.parentId),});eventBus.publish({