mirror of
https://github.com/colanode/colanode.git
synced 2025-12-29 00:25:03 +01:00
Fix notification counters
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user