mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
Revert "narrow: Do not mark messages as read in mentioned narrow."
This reverts commit 5e97ec9ad9.
This change has been pretty confusing for users, and so we need to do
something more in order to make the UI acceptable to change this
default.
This commit is contained in:
@@ -453,6 +453,10 @@ export class Filter {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (_.isEqual(term_types, ["is-mentioned"])) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (_.isEqual(term_types, ["is-resolved"])) {
|
||||
return true;
|
||||
}
|
||||
@@ -490,20 +494,15 @@ export class Filter {
|
||||
// can_mark_messages_read tests the following filters:
|
||||
// stream, stream + topic,
|
||||
// is: private, pm-with:,
|
||||
// is: resolved
|
||||
// is: mentioned, is: resolved
|
||||
if (this.can_mark_messages_read()) {
|
||||
return true;
|
||||
}
|
||||
// that leaves us with checking:
|
||||
// is: starred
|
||||
// (which can_mark_messages_read_does not check as starred messages are always read)
|
||||
// is: mentioned
|
||||
// We don't mark messages as read when in mentioned narrow.
|
||||
const term_types = this.sorted_term_types();
|
||||
|
||||
if (_.isEqual(term_types, ["is-mentioned"])) {
|
||||
return true;
|
||||
}
|
||||
if (_.isEqual(term_types, ["is-starred"])) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user