mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
narrow: Add condition whether to show unread message first in narrow.
All narrows that have is: query or can mark unread message as read will show unread message first.
This commit is contained in:
@@ -378,7 +378,9 @@ Filter.prototype = {
|
||||
can_mark_messages_read: function () {
|
||||
return !this.has_operator('search');
|
||||
},
|
||||
|
||||
allow_use_first_unread_when_narrowing: function () {
|
||||
return this.can_mark_messages_read() || this.has_operator('is');
|
||||
},
|
||||
can_apply_locally: function () {
|
||||
if (this.is_search()) {
|
||||
// The semantics for matching keywords are implemented
|
||||
|
||||
Reference in New Issue
Block a user