fix: prevent duplicate desktop notifications

This commit is contained in:
Bohdan Triapitsyn
2026-04-06 20:55:32 +03:00
parent 8de1884f5c
commit 2f1377ec01
+5
View File
@@ -386,6 +386,7 @@ function App({ apis }: AppProps) {
title?: string; title?: string;
body?: string; body?: string;
tag?: string; tag?: string;
desktopStdoutActive?: boolean;
}; };
}; };
@@ -401,6 +402,10 @@ function App({ apis }: AppProps) {
return; return;
} }
if (payload.properties?.desktopStdoutActive === true) {
return;
}
const tag = typeof payload.properties?.tag === 'string' ? payload.properties.tag : ''; const tag = typeof payload.properties?.tag === 'string' ? payload.properties.tag : '';
if (tag) { if (tag) {
const now = Date.now(); const now = Date.now();