delete notification on whitelist check fail

This commit is contained in:
2025-07-07 18:32:03 +00:00
parent 57ab59d342
commit c3d4f1b1ff

View File

@ -63,6 +63,7 @@ const generateOllamaRequest = async (
notification.status.visibility !== "private" // for safety, let's only respond to public messages notification.status.visibility !== "private" // for safety, let's only respond to public messages
) { ) {
if (whitelistOnly && !isFromWhitelistedDomain(notification)) { if (whitelistOnly && !isFromWhitelistedDomain(notification)) {
await deleteNotification(notification);
return; return;
} }
if (await alreadyRespondedTo(notification)) { if (await alreadyRespondedTo(notification)) {