diff --git a/web/src/user_topics.js b/web/src/user_topics.js index ead7154516..d84a3859db 100644 --- a/web/src/user_topics.js +++ b/web/src/user_topics.js @@ -67,6 +67,7 @@ export function get_user_topics_for_visibility_policy(visibility_policy) { topic, date_updated, date_updated_str, + visibility_policy, }); } } diff --git a/web/tests/settings_muted_topics.test.js b/web/tests/settings_muted_topics.test.js index 7c4de3ae9c..89a958dfb3 100644 --- a/web/tests/settings_muted_topics.test.js +++ b/web/tests/settings_muted_topics.test.js @@ -36,6 +36,7 @@ run_test("settings", ({override}) => { stream: frontend.name, stream_id: frontend.stream_id, topic: "js", + visibility_policy: user_topics.all_visibility_policies.MUTED, }, ]); populate_list_called = true; diff --git a/web/tests/user_topics.test.js b/web/tests/user_topics.test.js index 4e65536c6b..8f3278a40f 100644 --- a/web/tests/user_topics.test.js +++ b/web/tests/user_topics.test.js @@ -126,6 +126,7 @@ test("get_mutes", () => { stream: devel.name, stream_id: devel.stream_id, topic: "java", + visibility_policy: all_visibility_policies.MUTED, }, { date_updated: 1577836800000, @@ -133,6 +134,7 @@ test("get_mutes", () => { stream: office.name, stream_id: office.stream_id, topic: "gossip", + visibility_policy: all_visibility_policies.MUTED, }, ]); }); @@ -178,6 +180,7 @@ test("set_user_topics", () => { stream: social.name, stream_id: social.stream_id, topic: "breakfast", + visibility_policy: all_visibility_policies.MUTED, }, { date_updated: 1577836800000, @@ -185,6 +188,7 @@ test("set_user_topics", () => { stream: design.name, stream_id: design.stream_id, topic: "typography", + visibility_policy: all_visibility_policies.MUTED, }, ], );