badge: show mentions instead of unreads

This commit is contained in:
Oleh Polisan 2024-07-01 15:28:59 +03:00
parent 05c15e9384
commit 9521c65cea

View file

@ -34,7 +34,7 @@ export async function setTrayIcon(iconName: string) {
if (!Icons.has(iconName)) return;
// if need to set main icon then check whether there is need of notif badge
if (iconName === "icon" && lastBadgeCount === -1) {
if (iconName === "icon" && lastBadgeCount > 0) {
var trayImage: NativeImage;
if (isCustomIcon("icon")) {
trayImage = nativeImage.createFromPath(join(ICONS_DIR, "icon_custom.png"));