Fix notification counters

This commit is contained in:
Hakan Shehu
2025-01-02 15:59:26 +01:00
parent 5863b911da
commit 71600473f2
2 changed files with 4 additions and 2 deletions

View File

@@ -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');

View File

@@ -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({