search: Don't mark messages as read in search narrow.

Don't mark unread messages as read while searching.
This behavior will be extended to other narrows later.

Fixes: #12556.
This commit is contained in:
Mohit Gupta
2019-07-10 05:33:41 +05:30
committed by Tim Abbott
parent bd52ec9f95
commit 6ec40cf9a0
15 changed files with 66 additions and 10 deletions

View File

@@ -142,7 +142,9 @@ MessageListData.prototype = {
is_search: function () {
return this.filter.is_search();
},
can_mark_messages_read: function () {
return this.filter.can_mark_messages_read();
},
_get_predicate: function () {
// We cache this.
if (!this.predicate) {