refactor: Rename MessageList.muting_enabled.

Previously, the `muting_enabled` property of
MessageListData class was used to indicate whether
some messages in the message list need to be
filtered due to topic muting, depending on the
narrow. For example, we exclude messages belonging
to muted topics from stream narrows, but not from
search narrows.

The name `muting_enabled` is a bit confusing, and hence is
changed to `excludes_muted_topics`.
It is also important that the name be specific, since
a similar new property will be added for user mutes
in future commits.
This commit is contained in:
Abhijeet Prasad Bodas
2021-01-25 10:53:16 +05:30
committed by Steve Howell
parent 90636d5e81
commit 9ae44c769c
10 changed files with 34 additions and 34 deletions

View File

@@ -466,7 +466,7 @@ exports.initialize = function () {
// without a `table_name` attached.
const recent_topics_message_list = new message_list.MessageList({
filter: new Filter([{operator: "in", operand: "home"}]),
muting_enabled: true,
excludes_muted_topics: true,
});
exports.load_messages({
anchor: "newest",