Files
distribution/notifications
Adrian Callejas ce3fa7fc36 Fix notification filtering to work with actions when mediatypes is empty
The newIgnoredSink function had a bug where it would return the
unfiltered sink when the mediatypes list was empty, even if
ignoreActions was populated. This made it impossible to filter
events by action alone.

This fix changes the early return condition to check both parameters:
- Only returns unfiltered sink when BOTH are empty
- Allows filtering by actions alone
- Allows filtering by mediatypes alone
- Maintains existing OR logic when both are specified

Added test cases specifically for the edge case of empty mediatypes
with populated actions list.

Updated documentation to clarify how the filtering works and that
the two parameters work independently.

Fixes: #4729

Signed-off-by: Adrian Callejas <acallejaszu@gmail.com>
2025-10-28 15:58:19 +01:00
..
2025-07-31 06:54:27 +00:00
2025-07-31 06:54:27 +00:00
2024-10-07 13:07:47 +02:00
2024-08-30 11:18:18 +01:00
2022-11-03 22:48:20 +01:00
2024-10-07 13:07:47 +02:00