Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message lists: Rename update_items_for_muting to include `topic`.

Abhijeet Prasad Bodas4bd7ec7c3699
diff --git a/frontend_tests/node_tests/message_list_data.js b/frontend_tests/node_tests/message_list_data.js
index f045fad074a..da38bbc198f 100644
--- a/frontend_tests/node_tests/message_list_data.js
+++ b/frontend_tests/node_tests/message_list_data.js
@@ -74,7 +74,7 @@ run_test("basics", () => {
mld.remove([50]);
assert_contents(mld, [10, 15, 20, 25, 30, 35, 40, 45, 60, 70]);
- mld.update_items_for_muting();
+ mld.update_items_for_topic_muting();
assert_contents(mld, [10, 15, 20, 25, 30, 35, 40, 45, 60, 70]);
mld.reset_select_to_closest();
diff --git a/static/js/message_list.js b/static/js/message_list.js
index 70db0f5aec2..f18c9f119da 100644
--- a/static/js/message_list.js
+++ b/static/js/message_list.js
@@ -384,7 +384,7 @@ export class MessageList {
}
update_topic_muting_and_rerender() {
- this.data.update_items_for_muting();
+ this.data.update_items_for_topic_muting();
if (this.data.excludes_muted_topics) {
this.rerender();
}
diff --git a/static/js/message_list_data.js b/static/js/message_list_data.js
index 58fce13be4b..e490e7f1e1c 100644
--- a/static/js/message_list_data.js
+++ b/static/js/message_list_data.js
@@ -186,7 +186,7 @@ export class MessageListData {
return this.messages_filtered_for_topic_mutes(messages);
}
- update_items_for_muting() {
+ update_items_for_topic_muting() {
if (!this.excludes_muted_topics) {
return;
}