fix: prevent duplicate desktop notifications
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user