message lists: Rename update_items_for_muting to include topic.

This change will help avoid confusion with a similar
method which will be added in further commits for
user muting.
This commit is contained in:
Abhijeet Prasad Bodas
2021-04-29 21:48:21 +05:30
committed by Tim Abbott
parent 10cfd25456
commit 4bd7ec7c36
3 changed files with 3 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ run_test("basics", () => {
mld.remove([50]); mld.remove([50]);
assert_contents(mld, [10, 15, 20, 25, 30, 35, 40, 45, 60, 70]); 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]); assert_contents(mld, [10, 15, 20, 25, 30, 35, 40, 45, 60, 70]);
mld.reset_select_to_closest(); mld.reset_select_to_closest();

View File

@@ -384,7 +384,7 @@ export class MessageList {
} }
update_topic_muting_and_rerender() { update_topic_muting_and_rerender() {
this.data.update_items_for_muting(); this.data.update_items_for_topic_muting();
if (this.data.excludes_muted_topics) { if (this.data.excludes_muted_topics) {
this.rerender(); this.rerender();
} }

View File

@@ -186,7 +186,7 @@ export class MessageListData {
return this.messages_filtered_for_topic_mutes(messages); return this.messages_filtered_for_topic_mutes(messages);
} }
update_items_for_muting() { update_items_for_topic_muting() {
if (!this.excludes_muted_topics) { if (!this.excludes_muted_topics) {
return; return;
} }