Fix antispam looking at wrong messages#1777
Conversation
|
This seems rushed. Can you explain the differences between the sets of messages and the reason for this change? |
|
@MarkKoz I erroneously used the wrong set of messages in the cross-channel antispam PR. The one I used is all messages that the predicate looks at to see if there was a violation. The one that needs to be used is the one I use here which is the actual messages that are part of the offense. |
|
To put it simply, currently if there's a violation it deletes unrelated messages. |
janine9vn
left a comment
There was a problem hiding this comment.
Didn't do a full test but after looking at this and discussing with you this should now have the intended behavior.
|
Okay this code is confusing because it reassigned |
|
It doesn't help that this comment is inaccurate since it actually returns 3 items, not 2
|
|
Yeah it took me a bit to understand what's going on there. But the key point is that the messages that are logged were already |
No description provided.