mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
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.
15 lines
444 B
JavaScript
15 lines
444 B
JavaScript
"use strict";
|
|
|
|
// This file is being eliminated as part of the general purge of
|
|
// global variables from Zulip (everything is being moved into
|
|
// modules). Please don't add things here.
|
|
|
|
const home_msg_list = new message_list.MessageList({
|
|
table_name: "zhome",
|
|
filter: new Filter([{operator: "in", operand: "home"}]),
|
|
excludes_muted_topics: true,
|
|
});
|
|
|
|
window.home_msg_list = home_msg_list;
|
|
window.current_msg_list = home_msg_list;
|