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;
body?: string;
tag?: string;
desktopStdoutActive?: boolean;
};
};
@@ -401,6 +402,10 @@ function App({ apis }: AppProps) {
return;
}
if (payload.properties?.desktopStdoutActive === true) {
return;
}
const tag = typeof payload.properties?.tag === 'string' ? payload.properties.tag : '';
if (tag) {
const now = Date.now();