From 6c10f6b8b8564337fb5fb88d31f2403ec2ccce9e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 22 Jun 2022 18:59:31 +0300 Subject: fixes #3108 (NewEventNotify shows message popup even if antispam is enabled) --- plugins/StopSpamPlus/src/events.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/StopSpamPlus/src') diff --git a/plugins/StopSpamPlus/src/events.cpp b/plugins/StopSpamPlus/src/events.cpp index 10f69769ac..8985820c07 100644 --- a/plugins/StopSpamPlus/src/events.cpp +++ b/plugins/StopSpamPlus/src/events.cpp @@ -145,12 +145,9 @@ int OnDbEventFilterAdd(WPARAM w, LPARAM l) Contact_RemoveFromList(hContact); Contact_Hide(hContact); - // save message from contact + // mark message as read and allow to insert it into the history dbei->flags |= DBEF_READ; - db_event_add(hContact, dbei); - - // reject processing of the event - return 1; + return 0; } int OnDbContactSettingchanged(WPARAM hContact, LPARAM l) -- cgit v1.2.3