Stop comment-not-found notification always showing when requestedSince

`TEST && false || true` is always true regardless of `TEST`, we want
`TEST && (false || true)` instead.

Bug: T353568
Change-Id: I72fa6b87f43a9d8439883dfedc35fe82974b35de
This commit is contained in:
David Lynch 2023-12-16 09:20:19 -06:00
parent 70bd4e8f0e
commit 95121b7364

View file

@ -666,7 +666,7 @@ function init( $container, state ) {
}
} );
}
if ( highlightResult.highlighted.length === 0 && highlightResult.requested.length > 1 || highlightResult.requestedSince ) {
if ( highlightResult.highlighted.length === 0 && ( highlightResult.requested.length > 1 || highlightResult.requestedSince ) ) {
dismissableNotificationPromise = mw.loader.using( 'mediawiki.notification' ).then( function () {
return mw.notification.notify(
mw.message( 'discussiontools-target-comments-missing' ).text(),