Skip to content
Snippets Groups Projects
Commit 30033568 authored by Simon Urli's avatar Simon Urli
Browse files

XWIKI-19070: Change the notifications locations inclusion default: don't...

XWIKI-19070: Change the notifications locations inclusion default: don't consider that the whole wiki is watched when nothing is watched

  * Fix mistake in condition
parent cfeaf1b3
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,7 @@ public FilterPolicy filterEvent(Event event, DocumentReference user,
} else {
if (state.isWatched() && state.getStartingDate().after(event.getDate())) {
return FilterPolicy.FILTER;
} else if (!state.isWatched() && event.getDate().before(event.getDate())) {
} else if (!state.isWatched() && state.getStartingDate().before(event.getDate())) {
return FilterPolicy.FILTER;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment