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